mbuf.9 (141846) | mbuf.9 (141851) |
---|---|
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 141846 2005-02-13 22:25:33Z ru $ | 25.\" $FreeBSD: head/share/man/man9/mbuf.9 141851 2005-02-13 23:45:54Z ru $ |
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" --- 285 unchanged lines hidden (view full) --- 319.Vt mbuf cluster 320is 321.Dv MCLBYTES 322in size, where MCLBYTES is a machine-dependent constant. 323The system defines an advisory macro 324.Dv MINCLSIZE , 325which is the smallest amount of data to put into an 326.Vt mbuf cluster . | 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" --- 285 unchanged lines hidden (view full) --- 319.Vt mbuf cluster 320is 321.Dv MCLBYTES 322in size, where MCLBYTES is a machine-dependent constant. 323The system defines an advisory macro 324.Dv MINCLSIZE , 325which is the smallest amount of data to put into an 326.Vt mbuf cluster . |
327It's equal to the sum of | 327It is equal to the sum of |
328.Dv MLEN 329and 330.Dv MHLEN . 331It is typically preferable to store data into the data region of an 332.Vt mbuf , 333if size permits, as opposed to allocating a separate 334.Vt mbuf cluster 335to hold the same data. --- 369 unchanged lines hidden (view full) --- 705if necessary. 706.Sy Note : 707It does not allocate any 708.Vt mbuf clusters , 709just adds 710.Vt mbufs 711to the 712.Vt mbuf chain . | 328.Dv MLEN 329and 330.Dv MHLEN . 331It is typically preferable to store data into the data region of an 332.Vt mbuf , 333if size permits, as opposed to allocating a separate 334.Vt mbuf cluster 335to hold the same data. --- 369 unchanged lines hidden (view full) --- 705if necessary. 706.Sy Note : 707It does not allocate any 708.Vt mbuf clusters , 709just adds 710.Vt mbufs 711to the 712.Vt mbuf chain . |
713It's safe to set | 713It is safe to set |
714.Fa offset 715beyond the current 716.Vt mbuf chain 717end: zeroed 718.Vt mbufs 719will be allocated to fill the space. 720.\" 721.It Fn m_length mbuf last --- 363 unchanged lines hidden --- | 714.Fa offset 715beyond the current 716.Vt mbuf chain 717end: zeroed 718.Vt mbufs 719will be allocated to fill the space. 720.\" 721.It Fn m_length mbuf last --- 363 unchanged lines hidden --- |