The NetBSD Project

CVS log for src/sys/netsmb/smb_iod.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / netsmb

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.40 / (download) - annotate - [select for diffs], Sun Apr 29 20:27:31 2012 UTC (12 months, 3 weeks ago) by dsl
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, tls-maxphys-nbase, tls-maxphys-base, tls-maxphys, khorben-n900, jmcneill-usbmp-base10, agc-symver-base, agc-symver, HEAD
Changes since 1.39: +4 -3 lines
Diff to previous 1.39 (colored)

Remove everything to do with 'struct malloc_type' and the malloc link_set.
To make code in 'external' (etc) still compile, MALLOC_DECLARE() still
  has to generate something of type 'struct malloc_type *', with
  normal optimisation gcc generates a compile-time 0.
MALLOC_DEFINE() and friends have no effect.
Fix one or two places where the code would no longer compile.

Revision 1.39 / (download) - annotate - [select for diffs], Fri Dec 17 13:05:29 2010 UTC (2 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.38: +2 -7 lines
Diff to previous 1.38 (colored)

unifdef -D__NetBSD__

Revision 1.38 / (download) - annotate - [select for diffs], Wed Dec 15 12:58:13 2010 UTC (2 years, 5 months ago) by ahoka
Branch: MAIN
Changes since 1.37: +2 -4 lines
Diff to previous 1.37 (colored)

take two on module support
XXX this wont work as a builtin module

Revision 1.37 / (download) - annotate - [select for diffs], Sat Dec 11 04:21:17 2010 UTC (2 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.36: +2 -0 lines
Diff to previous 1.36 (colored)

Back this out. Fails lockdebug with duplicate lock initialization.
Please test with LOCKDEBUG!

Revision 1.36 / (download) - annotate - [select for diffs], Fri Dec 10 19:44:18 2010 UTC (2 years, 5 months ago) by ahoka
Branch: MAIN
Changes since 1.35: +2 -4 lines
Diff to previous 1.35 (colored)

Module support for NetBSD

Revision 1.35 / (download) - annotate - [select for diffs], Fri Sep 4 16:18:34 2009 UTC (3 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-premerge-20091211, jym-xensuspend-nbase
Branch point for: rmind-uvmplock
Changes since 1.34: +6 -2 lines
Diff to previous 1.34 (colored)

add comment to previous stating periodic wakeups can be nuked
once smb is mpsafe.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Sep 4 16:16:52 2009 UTC (3 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

defensive programming: wake up iod thread once a second "just in case"

Revision 1.33 / (download) - annotate - [select for diffs], Fri Sep 4 16:12:45 2009 UTC (3 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.32: +19 -4 lines
Diff to previous 1.32 (colored)

Send data for as long as there is new data available.  Otherwise
there was a danger of smb_iod_recvall() blocking, hence releasing
the kernel lock, new data creeping into the queue, and a wakeup
being missed (well, there's still a race, but since it's theoretical
enough for me to never have encountered it, I'll rather solve it
by periodic wakeups).

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jul 6 11:46:49 2009 UTC (3 years, 10 months ago) by njoly
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, jymxensuspend-base
Changes since 1.31: +3 -5 lines
Diff to previous 1.31 (colored)

Do initialise the callout when fetching a new request structure from
the pool, not when starting the timer. Likewise, destroy the callout
when giving back the item to the pool.

Revision 1.31 / (download) - annotate - [select for diffs], Wed Jul 1 10:01:28 2009 UTC (3 years, 10 months ago) by njoly
Branch: MAIN
Changes since 1.30: +4 -3 lines
Diff to previous 1.30 (colored)

Do not call callout_stop() unless the structure was previoulsy
initialised for a non null timeout.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Mar 18 15:14:32 2009 UTC (4 years, 2 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

bcmp -> memcmp

Revision 1.29 / (download) - annotate - [select for diffs], Tue Jun 24 10:37:19 2008 UTC (4 years, 11 months ago) by gmcgarry
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base, nick-hppapmap-base2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5, jym-xensuspend
Changes since 1.28: +23 -23 lines
Diff to previous 1.28 (colored)

Remove gcc variadic macros with comma elimination.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Jan 2 11:49:02 2008 UTC (5 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-1, wrstuden-revivesa-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-nfs-mp, wrstuden-revivesa, simonb-wapbl, mjf-devfs2
Changes since 1.27: +6 -6 lines
Diff to previous 1.27 (colored)

Merge vmlocking2 to head.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jul 9 21:11:15 2007 UTC (5 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs, matt-armv6, bouyer-xeni386
Changes since 1.26: +5 -9 lines
Diff to previous 1.26 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.26 / (download) - annotate - [select for diffs], Wed Apr 12 01:16:02 2006 UTC (7 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, thorpej-atomic-base, thorpej-atomic, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, reinoud-bufcleanup, post-newlock2-merge, newlock2-nbase, newlock2-base, newlock2, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

Coverity CID 992: Avoid NULL deref.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Dec 24 20:45:09 2005 UTC (7 years, 5 months ago) by perry
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:16 2005 UTC (7 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.23: +22 -18 lines
Diff to previous 1.23 (colored)

merge ktrace-lwp.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Feb 26 22:39:50 2005 UTC (8 years, 2 months ago) by perry
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, ktrace-lwp-base, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.22: +6 -6 lines
Diff to previous 1.22 (colored)

nuke trailing whitespace

Revision 1.22 / (download) - annotate - [select for diffs], Sun Mar 21 10:09:52 2004 UTC (9 years, 2 months ago) by jdolecek
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, matt-timespec, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.21: +33 -26 lines
Diff to previous 1.21 (colored)

follow FreeBSD and replace code using the try/catch paradigm
abstracted by itry, ithrow, icatch et.al. macros

there is problem with these in stack setup for FreeBSD/ia64 at least,
and in general the rewritten explicit code is slighly more optimal
and smaller in size

the NetBSD code change is somewhat different to what was done in FreeBSD,
to improve readability of the code

Revision 1.21 / (download) - annotate - [select for diffs], Sun Jun 29 22:32:10 2003 UTC (9 years, 10 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.20: +17 -22 lines
Diff to previous 1.20 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:15 2003 UTC (9 years, 10 months ago) by darrenr
Branch: MAIN
Changes since 1.19: +24 -19 lines
Diff to previous 1.19 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.19 / (download) - annotate - [select for diffs], Mon Apr 7 11:23:02 2003 UTC (10 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.18: +11 -3 lines
Diff to previous 1.18 (colored)

add support for asynchronous execution of SMB requests:
* add receive hook - if set, this function is called when request is finished
* unstatic smb_rq_enqueue(), smb_rq_reply() so that code can use that
  independant of smb_rq_simple() et al
this is needed for NT DIRECTORY CHANGE NOTIFY SMB, since they typically
take very long to complete and we want to be able to use single kernel thread
to handle them all

add support for 'nowait' requests (flag SMBR_NOWAIT), which don't expect
and answer from server and are marked as 'processed' immediatelly
after they are sent to server - needed for NT CANCEL SMB

Revision 1.18 / (download) - annotate - [select for diffs], Sat Apr 5 11:12:23 2003 UTC (10 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.17: +10 -10 lines
Diff to previous 1.17 (colored)

smb_iod_addrq(): change vc_maxmux check to #ifdef DIAGNOSTIC panic

change other SMBERROR() calls to SMBIODEBUG() - they are only useful when
debugging, and avoids spamming console/system logs with messages triggerable
from userland

Revision 1.17 / (download) - annotate - [select for diffs], Mon Mar 31 20:59:35 2003 UTC (10 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.16: +7 -5 lines
Diff to previous 1.16 (colored)

run iod at splnet, to eliminate race agains receive upcall wakeup,
so that iod wouldn't pause when the reply comes fast enough
to catch iod between smb_iod_recvall() and tsleep()

this gives nice performance boost for workloads with many synchronously
submitted transactions, like ls -lR

iod now doesn't need to wakeup periodically, so don't use any timeout
for its tsleep(); also use higher priority PSOCK instead of PWAIT

Revision 1.16 / (download) - annotate - [select for diffs], Sun Mar 30 11:58:17 2003 UTC (10 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.15: +19 -27 lines
Diff to previous 1.15 (colored)

use callout for request timeout, so that it could expire independantly
of iod calling smb_iod_sendall()
g/c now unneeded request timeout expire check from smb_iod_sendall()

make it possible to override default request timeout - set timeout
value in smb_rq_init() to default value, caller can adjust the value
before calling smb_iod_sendrq(); value <=0  means no timeout

Revision 1.15 / (download) - annotate - [select for diffs], Sun Mar 30 11:27:45 2003 UTC (10 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.14: +44 -46 lines
Diff to previous 1.14 (colored)

whitespace fixes
do not inline smb_iod_rqprocessed()
make smb_iod_sendall(), smb_iod_recvall() 'return' void - the return value
  was always ignored
smb_iod_recvall(): turn an programming error condition check to KASSERT()
smb_iod_main(): g/c unused 'error' local
smb_iod_thread(): iod_p is assigned in smb_iod_create(), so just KASSERT()
  it's correct here

Revision 1.14 / (download) - annotate - [select for diffs], Mon Mar 24 07:49:49 2003 UTC (10 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.13: +8 -9 lines
Diff to previous 1.13 (colored)

iod_pingtimo is unused, #if 0
iod_sleeptimo is set to same value always, so use the value directly
and #if 0 iod_sleeptimo

add one smb_iod_wakeup() in smb_iod_sendrq()
XXX unfortunately iod thread still must wakeup periodically to check
XXX for arriving replies - command latency might be improved if this could
XXX be avoided

Revision 1.13 / (download) - annotate - [select for diffs], Sun Mar 23 10:32:05 2003 UTC (10 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.12: +13 -13 lines
Diff to previous 1.12 (colored)

use simpleq instead of tailq for iod_rqlist - simpleq is enough
for our needs here

Revision 1.12 / (download) - annotate - [select for diffs], Sun Mar 23 10:01:31 2003 UTC (10 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.11: +25 -16 lines
Diff to previous 1.11 (colored)

Compute the request timeout time in smb_iod_sendrq() when the request is
sent out, use mono_time instead microtime(), and simplify computation
in smb_iod_sendall(). Also count the timout once, not twice as previous code.

#if 0 iod->iod_lastrqsent, it was write-only

Revision 1.11 / (download) - annotate - [select for diffs], Sun Mar 23 08:28:06 2003 UTC (10 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.10: +2 -7 lines
Diff to previous 1.10 (colored)

g/c some non-NetBSD code

Revision 1.10 / (download) - annotate - [select for diffs], Sat Mar 15 02:11:43 2003 UTC (10 years, 2 months ago) by kristerw
Branch: MAIN
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored)

ISO C requires a statement after a label.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Mar 3 21:16:02 2003 UTC (10 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.8: +4 -2 lines
Diff to previous 1.8 (colored)

#if 0 or g/c unused stuff
pointed out by Krister Walfridsson

Revision 1.8 / (download) - annotate - [select for diffs], Wed Feb 26 19:30:51 2003 UTC (10 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.7: +11 -28 lines
Diff to previous 1.7 (colored)

prefix tsleep() wmesg with 'smb', rather than '90'
drop #ifndef __NetBSD__ msleep() code, it only obfuscates the code

Revision 1.7 / (download) - annotate - [select for diffs], Tue Feb 25 09:12:11 2003 UTC (10 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.6: +4 -1 lines
Diff to previous 1.6 (colored)

add __KERNEL_RCSID

Revision 1.6 / (download) - annotate - [select for diffs], Mon Feb 24 21:13:13 2003 UTC (10 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.5: +5 -3 lines
Diff to previous 1.5 (colored)

make sure sr_bcount, sr_rqtid and sr_rquid are wrote in alignment-safe way
problem pointed out by Martin Husemann

while here, turn some checks/SMBERROR()s to #ifdef DIAGNOSTIC panic()s

Revision 1.5 / (download) - annotate - [select for diffs], Tue Feb 18 10:18:53 2003 UTC (10 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

use explicit width macros from <sys/endian.h>, do not define&use
letohs/letohl/letohq and such

Revision 1.4 / (download) - annotate - [select for diffs], Sat Feb 1 06:23:48 2003 UTC (10 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.3: +1 -3 lines
Diff to previous 1.3 (colored)

Add extensible malloc types, adapted from FreeBSD.  This turns
malloc types into a structure, a pointer to which is passed around,
instead of an int constant.  Allow the limit to be adjusted when the
malloc type is defined, or with a function call, as suggested by
Jonathan Stone.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jun 1 23:51:05 2002 UTC (10 years, 11 months ago) by lukem
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, fvdl_fs64_base
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field).  whilst it's O(n),
  this mirrors the functionality of SLIST_REMOVE() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
  this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jan 4 02:39:40 2002 UTC (11 years, 4 months ago) by deberg
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, ifpoll, eeh-devprop-base, eeh-devprop
Branch point for: nathanw_sa, kqueue, gehenna-devsw
Changes since 1.1: +57 -28 lines
Diff to previous 1.1 (colored)

resolve conflicts

Revision 1.1 / (download) - annotate - [select for diffs], Fri Jan 4 02:24:58 2002 UTC (11 years, 4 months ago) by deberg
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>