]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
This patch adds an M_NOFREE flag which allows one to mark an mbuf as
authorkmacy <kmacy@FreeBSD.org>
Sat, 6 Oct 2007 21:42:39 +0000 (21:42 +0000)
committerkmacy <kmacy@FreeBSD.org>
Sat, 6 Oct 2007 21:42:39 +0000 (21:42 +0000)
commitcaeef6111c8450d350a0926d31968121a5b5ae73
tree418691345a5209afc71ef70182373d04f589cdde
parentc00108fd67397129aaed54bbec1d64b7b0cd4259
This patch adds an M_NOFREE flag which allows one to mark an mbuf as
not being independently freeable. This allows one to embed an mbuf in
the cluster itself. This confers the benefits of the packet zone on
all cluster sizes. Embedded mbufs currently suffer from the same
limitation that packet zone mbufs do in that one cannot disconnect
them and pass them around independently of the cluster. It would
likely be possible to eliminate this limitation in the future by
adding a second reference for the mbuf itself.

Approved by: re(gnn)
sys/kern/kern_mbuf.c
sys/kern/uipc_mbuf.c
sys/sys/mbuf.h