History log of /freebsd-10.2-release/share/man/man9/mbuf.9
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 285830 23-Jul-2015 gjb

- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
builds.
- Update newvers.sh to reflect RC1.
- Update __FreeBSD_version to reflect 10.2.
- Update default pkg(8) configuration to use the quarterly branch.[1]

Discussed with: re, portmgr [1]
Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 280270 19-Mar-2015 markj

MFC r279896:
Document m_collapse().


# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 242998 13-Nov-2012 andre

Remove description of deprecated IP fragment checksum support.
Since SMPng it wasn't really supported anymore and if it worked
then only by chance. Only very few drivers ever supported it.

Discussed with: yongari
MFC after: 2 weeks


# 242350 30-Oct-2012 kevlo

The argument len of m_pullup(9) could be less than or equal to MHLEN.

Reviewed by: glebius


# 242075 25-Oct-2012 kevlo

Fix MINCLSIZE. It should be MHLEN + 1.

Reviewed by: glebius


# 235693 20-May-2012 gjb

Typo and mdoc(7) style fixes.

PR: 168117
Submitted by: Nobuyuki Koganemaru (kogane&jp!freebsd!org)
MFC after: 3 days


# 220787 18-Apr-2011 glebius

It is already seven years since mbuf allocator uses same
M_WAITOK/M_NOWAIT flags as malloc(9). Update manual page.

Submitted by: Vadim Goncharov <vadimnuclight tpu.ru>


# 213573 08-Oct-2010 uqs

mdoc: drop redundant .Pp and .LP calls

They have no effect when coming in pairs, or before .Bl/.Bd


# 211016 07-Aug-2010 des

Document the MEXTADD macro.

MFC after: 2 weeks


# 177599 25-Mar-2008 ru

Replaced the misleading uses of a historical artefact M_TRYWAIT with M_WAIT.
Removed dead code that assumed that M_TRYWAIT can return NULL; it's not true
since the advent of MBUMA.

Reviewed by: arch

There are ongoing disputes as to whether we want to switch to directly using
UMA flags M_WAITOK/M_NOWAIT for mbuf(9) allocation.


# 175872 01-Feb-2008 phk

Give MEXTADD() another argument to make both void pointers to the
free function controlable, instead of passing the KVA of the buffer
storage as the first argument.

Fix all conventional users of the API to pass the KVA of the buffer
as the first argument, to make this a no-op commit.

Likely break the only non-convetional user of the API, after informing
the relevant committer.

Update the mbuf(9) manual page, which was already out of sync on
this point.

Bump __FreeBSD_version to 800016 as there is no way to tell how
many arguments a CPP macro needs any other way.

This paves the way for giving sendfile(9) a way to wait for the
passed storage to have been accessed before returning.

This does not affect the memory layout or size of mbufs.

Parental oversight by: sam and rwatson.

No MFC is anticipated.


# 167018 26-Feb-2007 bms

Document m_pulldown().

Obtained from: MBUF issues in 4.4BSD IPv6/IPsec support (itojun)


# 166751 15-Feb-2007 rwatson

Expand history and authors section of mbuf.9 man page to discuss recent
transition to mbuma (FreeBSD 5.3) and the fact that mbufs are now limited
almost entirely to packet storage, with straight UMA zones being used for
most other network data types.


# 165019 08-Dec-2006 julian

Explicitly emphasize a facet of m_pullup() that some people seem to
frequently forget. i.e. that you can not keep using pointers to
within the old chain.


# 160614 24-Jul-2006 maxim

o GC MT_FTABLE removed in rev. 1.192 mbuf.h.
o Correct MT_HEADER define.


# 156756 15-Mar-2006 sam

promote fast ipsec's m_clone routine for public use; it is renamed
m_unshare and the caller can now control how mbufs are allocated

Reviewed by: andre, luigi, mlaier
MFC after: 1 week


# 152586 18-Nov-2005 andre

Remove references to MEXT_ADD_REF, MEXT_REM_REF and MEXT_IS_REF
which were removed with rev. 1.179 of mbuf.h.

Sponsored by: TCP/IP Optimization Fundraise 2005


# 148842 08-Aug-2005 sam

describe m_align


# 147647 28-Jun-2005 hmp

Use 'manual page' instead of 'man page' for consistency.

Approved by: re (hrs)


# 147398 15-Jun-2005 ru

Assorted markup fixes and minor wordsmithing.

Approved by: re


# 143761 17-Mar-2005 jmg

add m_copyup function.. This can be used to help make our ip stack less
alignment restrictive, and help performance on some ethernet cards which
currently copy the entire packet a couple bytes to get the packet aligned
properly...

Wordsmithing by: dwhite
Obtained from: NetBSD (code only)
I'll clean it up later: rwatson


# 141851 13-Feb-2005 ru

Expand contractions.


# 141846 13-Feb-2005 ru

Expand *n't contractions.


# 138580 08-Dec-2004 sam

document m_append


# 134424 28-Aug-2004 jmg

document that m_free returns m_next of the free'd mbuf


# 131745 07-Jul-2004 maxim

MT_TAG is dead.


# 131530 03-Jul-2004 ru

Mechanically kill hard sentence breaks and double whitespaces.


# 129469 20-May-2004 ru

Forgot to bump the document date, *blush*.


# 129468 20-May-2004 ru

Document mbuf tags based on the OpenBSD manpage.

Submitted by: Gleb Smirnoff


# 128924 04-May-2004 maxim

o Document m_getcl(9).

Submitted by: Gleb Smirnoff
MFC after: 2 weeks


# 128717 28-Apr-2004 maxim

o Add a missed description for m_free(9).

Optained from: NetBSD
MFC after: 1 week


# 127705 01-Apr-2004 ru

Assorted mdoc(7) fixes.


# 127704 01-Apr-2004 silby

Fix last commit to conform to mdoc style.

Submitted by: hmp


# 127701 01-Apr-2004 silby

Document the m_defrag function. (Mostly copied from the description
in uipc_mbuf.c)


# 126321 27-Feb-2004 ru

mtod() returns pointer to the specified type, not necessarily "void *".


# 125678 11-Feb-2004 bms

Document the functions m_apply() and m_getptr().

Requested by: Maxim Konovalov


# 125311 01-Feb-2004 ale

Fix MSIZE definition location.

PR: docs/62129
Submitted by: Lee Brotherston <lee@nerds.org.uk> (PR),
Marc Silver <marcs@draenor.org> (patch)
Approved by: blackend (mentor)


# 124819 21-Jan-2004 yar

As I've been pointed out by Andrew Gallatin, there are some
network interface cards smart (or twisted?) enough to be able
to calculate a TCP/UDP checksum for a packet fragmented by the
host CPU. Therefore the paragraph on the case has been revised.


# 124783 21-Jan-2004 yar

A couple of minor clarifications.


# 124779 21-Jan-2004 yar

Add a description for the hardware-assisted checksumming
facilities based on http://people.freebsd.org/~jlemon/csum.txt
and my own observations.


# 124698 18-Jan-2004 yar

Reformat the list of essential mbuf fields according
to the nice style used in ifnet(9).
This includes specifying field types, starting descriptions
with a capital letter, and ending them with a full stop.
Improve the language a bit, as well.


# 124688 18-Jan-2004 yar

Update the list of mbuf types from <sys/mbuf.h>.


# 124686 18-Jan-2004 yar

Update the list of possible mbuf flags from <sys/mbuf.h>.


# 122757 15-Nov-2003 trhodes

Remove an extra 'for' in the HISTORY section.


# 119964 10-Sep-2003 ru

mdoc(7): Properly mark C headers.


# 116405 15-Jun-2003 yar

Name a function argument "mbuf", not "buf", if it is
a pointer to struct mbuf for clarity and consistency.


# 116404 15-Jun-2003 yar

Add missing descriptions of macros M_ALIGN and MH_ALIGN.
Remove a reference to the defunct macro M_COPY_PKTHDR;
document the new functions m_dup_pkthdr() and m_move_pkthdr(),
and the macro variant of the latter, M_MOVE_PKTHDR().


# 116403 15-Jun-2003 yar

Add more markup to the mbuf(9) manpage. This includes:

- tagging plaintext "mbuf", "mbuf cluster", and "mbuf chain"
with .Vt (variable type) since all of them are ways of managing
data, i.e., they can be seen as data types;

- using .Vt/.Va instead of .Li (literal) where appropriate;

- tagging plaintext words that actually refer to function arguments
with .Fa.

Suggested by: ru


# 116400 15-Jun-2003 yar

Use .Va, not .Fa, to refer to structure members.

mdoc(7) contains an ambiguous statement on the issue,
but our mdoc(7) police's opinion is solid.

Suggested by: ru


# 115209 21-May-2003 ru

Assorted mdoc(7), grammar, spelling, and punctuation fixes.

Approved by: re (blanket)


# 115079 16-May-2003 hmp

Remove an extraneous `.El' that was reported by `groff -z`.

Approved by: des (mentor), re (scottl)


# 113491 15-Apr-2003 silby

Add a description of m_defragrandomfailures.


# 113455 13-Apr-2003 silby

Add info on how to use the MBUF_STRESS_TEST options. (Only 1 option
at present.)


# 111415 24-Feb-2003 trhodes

Return bits which were removed in revision 1.22.

Requested by: imp


# 109624 21-Jan-2003 alfred

Catch up to WAIT/NOWAIT cleanup.


# 109459 18-Jan-2003 rwatson

Caution programmers not to confuse M_DONTWAIT with M_NOWAIT. They
are not the same.

Suggested by: Hiten Pandya <hiten@unixdaemons.com>


# 107382 29-Nov-2002 ru

mdoc(7) police: catch up to the code changes.

Approved by: re


# 103557 18-Sep-2002 phk

Add m_fixhdr() and m_length().


# 88509 26-Dec-2001 davidc

Update function definitions and required include files to reflect
the current state of the system.

Approved by: alfred


# 84451 04-Oct-2001 bde

Fixed bitrot in synopsis. Const'ification of m_copydata() had not reached
here.


# 84306 01-Oct-2001 ru

mdoc(7) police: Use the new .In macro for #include statements.


# 81622 14-Aug-2001 ru

mdoc(7) police: s/BSD/.Bx/ where appropriate.


# 81285 08-Aug-2001 ru

mdoc(7) police: expand plain text xrefs.


# 81251 07-Aug-2001 ru

mdoc(7) police:

Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.


# 79727 14-Jul-2001 schweikh

Removed whitespace at end-of-line; no content changes. I simply did
cd src/share; find man[1-9] -type f|xargs perl -pi -e 's/[ \t]+$//'

BTW, what editors are the culprits? I'm using vim and it shows
me whitespace at EOL in troff files with a thick blue block...

Reviewed by: Silence from cvs diff -b
MFC after: 7 days


# 72530 16-Feb-2001 ru

mdoc(7) police: sanitize previous revision changes.


# 72528 16-Feb-2001 bmilekic

Document recently-implemented m_getm().


# 72512 15-Feb-2001 bde

Fixed missing and/or wrong and/or extra includes in synopsis.


# 71895 01-Feb-2001 ru

mdoc(7) police: split punctuation characters + misc fixes.


# 70466 29-Dec-2000 ru

Prepare for mdoc(7)NG.


# 70322 24-Dec-2000 bmilekic

Change M_WAIT to M_TRYWAIT, the new name of the flag.


# 69013 21-Nov-2000 bmilekic

Add description of M_WRITABLE macro and new M_RDONLY flag. Try my best to
conform to line break mdoc FreeBSD standards, although I am new to this.

Reviewed by: sheldonh


# 68557 10-Nov-2000 sheldonh

Miscellaneous content fixes:

* xref sysctl
* do not mark kern.ipc.mbuf_wait up as a function argument.
* do not mix case of function argument names
* a mbuf -> an mbuf
* if -> whether
* typos


# 68556 10-Nov-2000 sheldonh

Whitespace only: fix hard sentence breaks now, before people really
get stuck into this page.


# 68211 01-Nov-2000 bmilekic

Fixup some wrong statements in the new mbuf(9) man page.
Also introduce a bunch of (missed?) macros and functions.
This man page still needs a lot of work, most likely a re-ordering
of the macros/functions, and a more complete, more accurate, listing of
available routines.
A good and worthy start nonetheless.


# 67664 26-Oct-2000 nik

Add a prototype mbuf.9 man page. Probably needs work, but it's a good
start.

PR: docs/22053
Submitted by: Yar Tikhiy <yar@comp.chem.msu.su>