freebsd-skq/sys
andre 143b5d29e0 Add an API for jumbo mbuf cluster allocation and also provide
4k clusters in addition to 9k and 16k ones.

 struct mbuf *m_getjcl(int how, short type, int flags, int size)
 void *m_cljget(struct mbuf *m, int how, int size)

m_getjcl() returns an mbuf with a cluster of the specified size attached
like m_getcl() does for 2k clusters.

m_cljget() is different from m_clget() as it can allocate clusters
without attaching them to an mbuf.  In that case the return value
is the pointer to the cluster of the requested size.  If an mbuf was
specified, it gets the cluster attached to it and the return value
can be safely ignored.

For size both take MCLBYTES, MJUM4BYTES, MJUM9BYTES, MJUM16BYTES.

Reviewed by:	glebius
Tested by:	glebius
Sponsored by:	TCP/IP Optimization Fundraise 2005
2005-12-08 13:13:06 +00:00
..
alpha - Cleanup whitespace and extra ()s in vtophys() macros. 2005-12-06 21:09:01 +00:00
amd64 Catch up to the system siginfo changes. Use a union for the ia32 layout 2005-12-06 23:06:29 +00:00
arm Drop _MACHINE_ARCH and _MACHINE defines (not to be confused with 2005-12-06 13:27:21 +00:00
boot Add kernel module loading option for snd_atiixp(4). 2005-12-01 03:10:12 +00:00
bsm For consistency with more system include files, add a trailing '_' to 2005-05-29 16:11:34 +00:00
cam Fix a bug that caused some /dev entries to continue to exist after 2005-11-18 02:43:49 +00:00
coda Fix -Wundef from compiling the amd64 LINT. 2005-12-04 10:06:06 +00:00
compat Catch up to the system siginfo changes. Use a union for the ia32 layout 2005-12-06 23:06:29 +00:00
conf Add BPF Just-In-Time compiler support for ng_bpf(4). 2005-12-07 21:30:47 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r153200, 2005-12-07 17:32:13 +00:00
crypto Add VIA/ACE "PadLock" support as a crypto(9) driver. 2005-08-18 00:30:22 +00:00
ddb Fix -Wundef. 2005-12-04 02:12:43 +00:00
dev Reorder the calling of the completion callback and the transfer 2005-12-08 03:08:17 +00:00
doc
fs Recent nmount(2) adoption in mount_smbfs(8) did not flag the "long" option 2005-12-05 19:05:06 +00:00
gdb
geom It is unclear who is wrong and who is right, but when operating on 2005-11-30 22:54:41 +00:00
gnu Fix -Wundef warnings found when compiling i386 LINT, GENERIC and 2005-12-05 11:58:35 +00:00
i4b Fix -Wundef warnings found when compiling i386 LINT, GENERIC and 2005-12-05 11:58:35 +00:00
i386 - Cleanup whitespace and extra ()s in vtophys() macros. 2005-12-06 21:09:01 +00:00
ia64 - Cleanup whitespace and extra ()s in vtophys() macros. 2005-12-06 21:09:01 +00:00
isa Fix -Wundef. 2005-12-04 02:12:43 +00:00
isofs/cd9660 Normalize a significant number of kernel malloc type names: 2005-10-31 15:41:29 +00:00
kern Add an API for jumbo mbuf cluster allocation and also provide 2005-12-08 13:13:06 +00:00
libkern Normalize a significant number of kernel malloc type names: 2005-10-31 15:41:29 +00:00
modules Add BPF Just-In-Time compiler support for ng_bpf(4). 2005-12-07 21:30:47 +00:00
net Do not accept an empty bpf program. 2005-12-08 00:05:03 +00:00
net80211 correct handling of dtim for periods > 1 2005-12-05 22:14:13 +00:00
netatalk - Store pointer to the link-level address right in "struct ifnet" 2005-11-11 16:04:59 +00:00
netatm - Store pointer to the link-level address right in "struct ifnet" 2005-11-11 16:04:59 +00:00
netgraph Fix build without BPF_JITTER option. 2005-12-07 21:41:45 +00:00
netinet When we drop packet due to no space in output interface output queue, also 2005-12-06 11:16:11 +00:00
netinet6 the response NS to a DAD NS was not sent correctly due to the 2005-12-08 06:43:39 +00:00
netipsec Fix -Wundef warnings found when compiling i386 LINT, GENERIC and 2005-12-05 11:58:35 +00:00
netipx Include ip_options.h for IPX-IP encapsulation. 2005-11-20 16:17:12 +00:00
netkey Fix -Wundef from compiling the amd64 LINT. 2005-12-04 10:06:06 +00:00
netnatm Use sparse initializers for "struct domain" and "struct protosw", 2005-11-09 13:29:16 +00:00
netncp Normalize a significant number of kernel malloc type names: 2005-10-31 15:41:29 +00:00
netsmb Prevent module unloading if there are active connections. 2005-11-22 02:15:46 +00:00
nfs Fixes for NFS crashes on architectures that require strict alignment. 2005-07-14 20:08:27 +00:00
nfs4client Normalize a significant number of kernel malloc type names: 2005-10-31 15:41:29 +00:00
nfsclient Unexpand LLADDR(). 2005-11-29 09:51:47 +00:00
nfsserver Normalize a significant number of kernel malloc type names: 2005-10-31 15:41:29 +00:00
opencrypto Fix bogus check. It was possible to panic the kernel by giving 0 length. 2005-08-18 11:58:03 +00:00
pc98 Switch MACHINE to "pc98" on FreeBSD/pc98. 2005-12-08 12:35:12 +00:00
pccard Remove the kernel portion of OLDCARD. I'm working on a replacement 2005-09-25 21:29:32 +00:00
pci Fix -Wundef from compiling the amd64 LINT. 2005-12-04 10:06:06 +00:00
posix4 mqueue.h has been superceded by sys/mqueue.h thanks to David Xu's work. 2005-11-28 02:58:30 +00:00
powerpc - Cleanup whitespace and extra ()s in vtophys() macros. 2005-12-06 21:09:01 +00:00
rpc Fix -Wundef. 2005-12-04 02:12:43 +00:00
security Normalize a significant number of kernel malloc type names: 2005-10-31 15:41:29 +00:00
sparc64 style(9) nits 2005-12-07 03:41:12 +00:00
sys Add an API for jumbo mbuf cluster allocation and also provide 2005-12-08 13:13:06 +00:00
tools Add convenience macros for bus_space usage that doesn't require specification 2005-09-24 20:11:07 +00:00
ufs Fix parsing of atime, clusterr, clusterw, exec, suid, symfollow 2005-11-24 15:06:40 +00:00
vm Simplify vmspace_dofree(). 2005-12-04 22:55:41 +00:00
Makefile