diff options
author | maxim <maxim@FreeBSD.org> | 2004-05-04 14:53:34 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2004-05-04 14:53:34 +0000 |
commit | 1502ecbc2e0b3a06365fe44fe5b29cb90ca8cf6c (patch) | |
tree | 3a9b6eec4185bf2da417a2557712a50e2488d935 /share/man/man9/mbuf.9 | |
parent | 8cd95c1a2aa4044c48d1dddb08ae3d84f0c0a01b (diff) | |
download | FreeBSD-src-1502ecbc2e0b3a06365fe44fe5b29cb90ca8cf6c.zip FreeBSD-src-1502ecbc2e0b3a06365fe44fe5b29cb90ca8cf6c.tar.gz |
o Document m_getcl(9).
Submitted by: Gleb Smirnoff
MFC after: 2 weeks
Diffstat (limited to 'share/man/man9/mbuf.9')
-rw-r--r-- | share/man/man9/mbuf.9 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/share/man/man9/mbuf.9 b/share/man/man9/mbuf.9 index 7c0eec8..67f48bf 100644 --- a/share/man/man9/mbuf.9 +++ b/share/man/man9/mbuf.9 @@ -77,6 +77,8 @@ .Ft struct mbuf * .Fn m_getm "struct mbuf *orig" "int len" "int how" "int type" .Ft struct mbuf * +.Fn m_getcl "int how" "short type" "int flags" +.Ft struct mbuf * .Fn m_getclr "int how" "int type" .Ft struct mbuf * .Fn m_gethdr "int how" "int type" @@ -530,6 +532,21 @@ allocation. A function version of .Fn MGETHDR for non-critical paths. +.It Fn m_getcl how type flags +Fetch an +.Vt mbuf +with a +.Vt mbuf cluster +attached to it. +If one of the allocations fails, the entire allocation fails. +This routine is the preferred way of fetching both the +.Vt mbuf +and +.Vt mbuf cluster +together, as it avoids having to unlock/relock between allocations. +Returns +.Dv NULL +on failure. .It Fn m_getclr how type Allocate an .Vt mbuf |