Deleted Added
full compact
mbuf.9 (141851) mbuf.9 (143761)
1.\" Copyright (c) 2000 FreeBSD Inc.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
1.\" Copyright (c) 2000 FreeBSD Inc.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD: head/share/man/man9/mbuf.9 141851 2005-02-13 23:45:54Z ru $
25.\" $FreeBSD: head/share/man/man9/mbuf.9 143761 2005-03-17 19:34:57Z jmg $
26.\"
27.Dd August 27, 2004
28.Dt MBUF 9
29.Os
30.\"
31.Sh NAME
32.Nm mbuf
33.Nd "memory management in the kernel IPC subsystem"

--- 56 unchanged lines hidden (view full) ---

90.Ss Mbuf utility functions
91.Ft void
92.Fn m_adj "struct mbuf *mbuf" "int len"
93.Ft int
94.Fn m_append "struct mbuf *mbuf" "int len" "c_caddr_t cp"
95.Ft struct mbuf *
96.Fn m_prepend "struct mbuf *mbuf" "int len" "int how"
97.Ft struct mbuf *
26.\"
27.Dd August 27, 2004
28.Dt MBUF 9
29.Os
30.\"
31.Sh NAME
32.Nm mbuf
33.Nd "memory management in the kernel IPC subsystem"

--- 56 unchanged lines hidden (view full) ---

90.Ss Mbuf utility functions
91.Ft void
92.Fn m_adj "struct mbuf *mbuf" "int len"
93.Ft int
94.Fn m_append "struct mbuf *mbuf" "int len" "c_caddr_t cp"
95.Ft struct mbuf *
96.Fn m_prepend "struct mbuf *mbuf" "int len" "int how"
97.Ft struct mbuf *
98.Fn m_copyup "struct mbuf *mbuf" "int len" "int dstoff"
99.Ft struct mbuf *
98.Fn m_pullup "struct mbuf *mbuf" "int len"
99.Ft struct mbuf *
100.Fn m_copym "struct mbuf *mbuf" "int offset" "int len" "int how"
101.Ft struct mbuf *
102.Fn m_copypacket "struct mbuf *mbuf" "int how"
103.Ft struct mbuf *
104.Fn m_dup "struct mbuf *mbuf" "int how"
105.Ft void

--- 503 unchanged lines hidden (view full) ---

609must be less than
610.Dv MLEN
611or
612.Dv MHLEN ,
613depending on the
614.Dv M_PKTHDR
615flag setting.
616.\"
100.Fn m_pullup "struct mbuf *mbuf" "int len"
101.Ft struct mbuf *
102.Fn m_copym "struct mbuf *mbuf" "int offset" "int len" "int how"
103.Ft struct mbuf *
104.Fn m_copypacket "struct mbuf *mbuf" "int how"
105.Ft struct mbuf *
106.Fn m_dup "struct mbuf *mbuf" "int how"
107.Ft void

--- 503 unchanged lines hidden (view full) ---

611must be less than
612.Dv MLEN
613or
614.Dv MHLEN ,
615depending on the
616.Dv M_PKTHDR
617flag setting.
618.\"
619.It Fn m_copyup mbuf len dstoff
620Similar to
621.Fn m_pullup
622but copies
623.Fa len
624bytes of data into a new mbuf at
625.Fa dstoff
626bytes into the mbuf.
627The
628.Fa dstoff
629argument aligns the data and leaves room for a link layer header.
630Return the new
631.Vt mbuf chain
632on success,
633and frees the
634.Vt mbuf chain
635and returns
636.Dv NULL
637on failure.
638.Sy Note :
639The function does not allocate
640.Vt mbuf clusters ,
641so
642.Fa len + dstoff
643must be less than
644.Dv MHLEN .
645.\"
617.It Fn m_pullup mbuf len
618Arrange that the first
619.Fa len
620bytes of an
621.Vt mbuf chain
622are contiguous and lay in the data area of
623.Fa mbuf ,
624so they are accessible with

--- 460 unchanged lines hidden ---
646.It Fn m_pullup mbuf len
647Arrange that the first
648.Fa len
649bytes of an
650.Vt mbuf chain
651are contiguous and lay in the data area of
652.Fa mbuf ,
653so they are accessible with

--- 460 unchanged lines hidden ---