Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: mbuf.9
- ===================================================================
- --- mbuf.9 (revision 260701)
- +++ mbuf.9 (working copy)
- @@ -72,8 +72,10 @@
- .Ft struct mbuf *
- .Fn m_get "int how" "int type"
- .Ft struct mbuf *
- -.Fn m_getm "struct mbuf *orig" "int len" "int how" "int type"
- +.Fn m_getm "struct mbuf *orig" "int len" "int how" "short type"
- .Ft struct mbuf *
- +.Fn m_getm2 "struct mbuf *m" "int len" "int how" "short type" "int flags"
- +.Ft struct mbuf *
- .Fn m_getcl "int how" "short type" "int flags"
- .Ft struct mbuf *
- .Fn m_getclr "int how" "int type"
- @@ -136,6 +138,8 @@
- .Ft struct mbuf *
- .Fn m_defrag "struct mbuf *m0" "int how"
- .Ft struct mbuf *
- +.Fn m_collapse "struct mbuf *m0" "int how" "int maxfrags"
- +.Ft struct mbuf *
- .Fn m_unshare "struct mbuf *m0" "int how"
- .\"
- .Sh DESCRIPTION
- @@ -574,6 +578,14 @@
- and
- .Vt mbuf cluster
- allocation.
- +.It Fn m_getm2 m len how type flags
- +A version of
- +.Fn m_getm
- +that allows specific
- +.Fa flags
- +to be set, e.g. when
- +.Vt M_PKTHDR
- +is not desired.
- .It Fn m_gethdr how type
- A function version of
- .Fn MGETHDR
- @@ -973,8 +985,19 @@
- depending on the caller's preference.
- .Pp
- This function is especially useful in network drivers, where
- -certain long mbuf chains must be shortened before being added
- -to TX descriptor lists.
- +certain long
- +.Vt mbuf chains
- +must be shortened before being added to TX descriptor lists.
- +.It Fn m_collapse m0 how maxfrags
- +Collapse an mbuf chain, returning at most
- +.Fa maxfrags
- +separate
- +.Vt mbufs+clusters .
- +If this is not possible
- +.Dv NULL
- +is returned and the original
- +.Vt mbuf chain
- +is left in its present (potentially modified) state.
- .It Fn m_unshare m0 how
- Create a version of the specified mbuf chain whose
- contents can be safely modified without affecting other users.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement