From b9def06b296e93158deabd2aac154e9cd0fa8f64 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Wed, 8 Dec 2004 17:47:49 +0000 Subject: [PATCH] document m_append --- share/man/man9/mbuf.9 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/share/man/man9/mbuf.9 b/share/man/man9/mbuf.9 index d65724440d8..964a3803ccc 100644 --- a/share/man/man9/mbuf.9 +++ b/share/man/man9/mbuf.9 @@ -90,6 +90,8 @@ .Ss Mbuf utility functions .Ft void .Fn m_adj "struct mbuf *mbuf" "int len" +.Ft int +.Fn m_append "struct mbuf *mbuf" "int len" "c_caddr_t cp" .Ft struct mbuf * .Fn m_prepend "struct mbuf *mbuf" "int len" "int how" .Ft struct mbuf * @@ -581,6 +583,16 @@ if .Fa len is positive, from the tail otherwise. .\" +.It Fn m_append mbuf len cp +Append +.Vt len +bytes of data +.Vt cp +to the +.Vt mbuf chain . +Extend the mbuf chain if the new data does not fit in +existing space. +.\" .It Fn m_prepend mbuf len how Allocate a new .Vt mbuf