freebsd-dev/sys
Bosko Milekic 9e7225808e Make m_getm() always return the top of the newly allocated chain, as
opposed to returning the top of the old chain when there was one and
the top of the newly allocated chain if there was no old chain.

Actually, it should be noted that prior to this fix, although the
comment above m_getm() advertised that m_getm() would return the
top of the old chain (if an old chain was being passed in) it
actually [wrongly] was returning the tail mbuf in the old chain
instead.  This is a bug but since the one use of m_getm() in
the tree luckily did not depend on the behavior, it happened
to work out without notice.

Harti Brandt pointed out that the advertised behavior was actually
not the real behavior and so this change makes m_getm() ALWAYS
return the newly allocated chain (and fixes the comment).  This
is less confusing and is the best course of action as then the
caller is always able to have both a reference to the top of
the original chain (because it's passing it in in the call) and
a reference to the newly attached chain.  Although the API is
slightly modified, I don't think that any third-party code uses
m_getm() and if it does, it surely can't be working properly
because the old behavior was bogus.

API bug pointed out by: Harti Brandt <brandt@fokus.fraunhofer.de>
2003-02-14 16:50:13 +00:00
..
alpha Fix the style of the SCHED_4BSD commit. 2003-02-13 22:24:44 +00:00
amd64 - Add a mutex for synchronizing the use of CMAP/CADDR 1 and 2. 2003-02-14 07:34:28 +00:00
arm
boot Don't bother to build ficl if NOFORTH is defined. 2003-02-13 04:35:04 +00:00
cam Announce our ability to do DFLTPHYS sized transfers. 2003-02-11 21:30:28 +00:00
coda
compat Obtain proc lock around modification of p_siglist in linux_wait4(). 2003-02-14 08:59:49 +00:00
conf Split the arch-specific AGP files into the appropriate files.* and do the same 2003-02-14 06:33:52 +00:00
contrib Mark our struct disk with DISKFLAG_CANDELETE instead of the cdevsw with 2003-02-11 12:35:01 +00:00
crypto
ddb
dev Clear the bus reset event flag as soon as possible after 2003-02-14 15:52:32 +00:00
fs Use the SI_CANDELETE flag on the dev_t rather than the D_CANFREE flag 2003-02-11 12:49:58 +00:00
geom Correctly set bio_data in cloned children when cutting up large requests. 2003-02-12 16:30:46 +00:00
gnu
i4b
i386 Diff reduction to GENERIC. 2003-02-14 08:41:25 +00:00
ia64 Fix the style of the SCHED_4BSD commit. 2003-02-13 22:24:44 +00:00
isa Switch to using the TSC code in i386/i386/tsc.c. 2003-02-11 11:43:25 +00:00
isofs/cd9660
kern Make m_getm() always return the top of the newly allocated chain, as 2003-02-14 16:50:13 +00:00
libkern Improve a comment and undo a bogus s/a/an/ in a comment. An asm guru 2003-02-11 20:15:11 +00:00
modules Split the arch-specific AGP files into the appropriate files.* and do the same 2003-02-14 06:33:52 +00:00
net Do not do an assignment in a truth test (previous commit) or gcc gives a 2003-02-12 19:34:34 +00:00
netatalk
netatm
netgraph
netinet The protocol lock is always held in the dropafterack case, so we don't 2003-02-13 22:14:22 +00:00
netinet6
netipsec
netipx
netkey
netnatm
netncp Lock proc while accessing p_siglist p_sigmask and p_sigignore. 2003-02-14 09:16:43 +00:00
netns
netsmb Lock proc while manipulating p_sigmask p_sigignore and p_siglist. 2003-02-14 09:12:12 +00:00
nfs
nfsclient
nfsserver
opencrypto
pc98 Fix the style of the SCHED_4BSD commit. 2003-02-13 22:24:44 +00:00
pccard
pci Split the arch-specific AGP files into the appropriate files.* and do the same 2003-02-14 06:33:52 +00:00
posix4
powerpc Fix whitespace problems with option lines. 2003-02-13 22:27:40 +00:00
rpc
security
sparc64 Fix the style of the SCHED_4BSD commit. 2003-02-13 22:24:44 +00:00
sys Implement dlinfo() function. 2003-02-13 17:47:44 +00:00
tools
ufs Correct lines incorrectly added to the copyright message. 2003-02-14 00:31:06 +00:00
vm
Makefile