aboutsummaryrefslogtreecommitdiff
path: root/share/man/man9/mbuf.9
diff options
context:
space:
mode:
authorAndriy Voskoboinyk <avos@FreeBSD.org>2016-10-10 17:16:02 +0000
committerAndriy Voskoboinyk <avos@FreeBSD.org>2016-10-10 17:16:02 +0000
commit1af4a585033c3f1d38bbc7b2c1264e3bb9c350c0 (patch)
tree57bf69880a70825d86055ad502393b1a638bde90 /share/man/man9/mbuf.9
parentf45a6fb93524d0ae832e85c24e33c4fffb799f4e (diff)
downloadsrc-1af4a585033c3f1d38bbc7b2c1264e3bb9c350c0.tar.gz
src-1af4a585033c3f1d38bbc7b2c1264e3bb9c350c0.zip
mbuf(9), mbuf_tags(9): fix function prototypes.
- Add m_getclr(9) symlink to ObsoleteFiles.inc (removed in r295481). - Add const qualifiers in m_dup(), m_dup_pkthdr() and m_tag_copy_chain() (r286450). - Fix m_dup_pkthdr() definition (it's not the same as m_move_pkthdr()). MFC after: 5 days
Notes
Notes: svn path=/head/; revision=307000
Diffstat (limited to 'share/man/man9/mbuf.9')
-rw-r--r--share/man/man9/mbuf.914
1 files changed, 4 insertions, 10 deletions
diff --git a/share/man/man9/mbuf.9 b/share/man/man9/mbuf.9
index 233caf086e66..a4fa70606a97 100644
--- a/share/man/man9/mbuf.9
+++ b/share/man/man9/mbuf.9
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd August 30, 2016
+.Dd October 10, 2016
.Dt MBUF 9
.Os
.\"
@@ -79,8 +79,6 @@
.Ft struct mbuf *
.Fn m_getcl "int how" "short type" "int flags"
.Ft struct mbuf *
-.Fn m_getclr "int how" "short type"
-.Ft struct mbuf *
.Fn m_gethdr "int how" "short type"
.Ft struct mbuf *
.Fn m_free "struct mbuf *mbuf"
@@ -107,7 +105,7 @@
.Ft struct mbuf *
.Fn m_copypacket "struct mbuf *mbuf" "int how"
.Ft struct mbuf *
-.Fn m_dup "struct mbuf *mbuf" "int how"
+.Fn m_dup "const struct mbuf *mbuf" "int how"
.Ft void
.Fn m_copydata "const struct mbuf *mbuf" "int offset" "int len" "caddr_t buf"
.Ft void
@@ -126,8 +124,8 @@
.Fn m_catpkt "struct mbuf *m" "struct mbuf *n"
.Ft u_int
.Fn m_fixhdr "struct mbuf *mbuf"
-.Ft void
-.Fn m_dup_pkthdr "struct mbuf *to" "struct mbuf *from"
+.Ft int
+.Fn m_dup_pkthdr "struct mbuf *to" "const struct mbuf *from" "int how"
.Ft void
.Fn m_move_pkthdr "struct mbuf *to" "struct mbuf *from"
.Ft u_int
@@ -602,10 +600,6 @@ This is like
but it the size of the cluster allocated will be large enough for
.Fa size
bytes.
-.It Fn m_getclr how type
-Allocate an
-.Vt mbuf
-and zero out the data region.
.It Fn m_free mbuf
Frees
.Vt mbuf .