freebsd-skq/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 MB_LEN_MAX is not MD, move it to the MI limits.h. 2002-12-22 06:38:45 +00:00
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 Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
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 Remove some unnecessary casts. 2003-01-25 22:41:22 +00:00
ddb Reversion of commit by Davidxu plus fixes since applied. 2003-02-01 12:17:09 +00:00
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 - Use the new vop_stdfsync instead of recreating our own. 2003-02-09 12:28:51 +00:00
i4b Fix another typo in a comment which I noticed while doing the MFC. 2003-02-06 14:52:47 +00:00
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 Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
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 Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
netatm Band-XXX-aid an easy to provoke panic. 2003-01-28 12:10:11 +00:00
netgraph Take the rc4 code out of ng_mppc module so we don't fail to load when 2003-02-05 19:11:11 +00:00
netinet The protocol lock is always held in the dropafterack case, so we don't 2003-02-13 22:14:22 +00:00
netinet6 Consolidate MIN/MAX macros into one place (param.h). 2003-02-02 13:17:30 +00:00
netipsec Comment out srandom(): 2003-02-05 15:32:24 +00:00
netipx add forgotten IFA_LOCK_INIT 2003-01-23 23:36:45 +00:00
netkey Comment out srandom(): 2003-02-05 15:32:24 +00:00
netnatm Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
netncp Lock proc while accessing p_siglist p_sigmask and p_sigignore. 2003-02-14 09:16:43 +00:00
netns Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
netsmb Lock proc while manipulating p_sigmask p_sigignore and p_siglist. 2003-02-14 09:12:12 +00:00
nfs Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
nfsclient Provide a sysctl to allow defaulting of the connectionless (-c) feature 2003-01-22 19:57:31 +00:00
nfsserver Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
opencrypto Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
pc98 Fix the style of the SCHED_4BSD commit. 2003-02-13 22:24:44 +00:00
pccard Consolidate MIN/MAX macros into one place (param.h). 2003-02-02 13:17:30 +00:00
pci Split the arch-specific AGP files into the appropriate files.* and do the same 2003-02-14 06:33:52 +00:00
posix4 Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. 2003-01-21 08:56:16 +00:00
powerpc Fix whitespace problems with option lines. 2003-02-13 22:27:40 +00:00
rpc
security Implement mpo_check_kld_load() and mpo_check_kld_unload() for the Biba 2003-02-04 22:38:33 +00:00
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 Remove miidevs.h and generate it from miidevs at compile time. 2003-01-19 02:59:34 +00:00
ufs Correct lines incorrectly added to the copyright message. 2003-02-14 00:31:06 +00:00
vm Add a comment describing how pagedaemon_wakeup() should be used and 2003-02-09 20:40:36 +00:00
Makefile