summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2013-08-21 05:21:47 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2013-08-21 05:21:47 +0000
commit6c6287fe271247607d595cdf2777af3e65547680 (patch)
treea8c0feda16a4dbe1b9ec8258e9a50ceaccf30e16 /share
parenta83165bd346e9097817cfc2dbbdf05990cc2fa80 (diff)
get rid of the copy argument in m_devget that let you provide an
alternative to bcopy since noone uses it. while there use memcpy instead of bcopy because we know the memory cannot overlap. ok henning@ matthew@ mikeb@ deraadt@
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/mbuf.919
1 files changed, 5 insertions, 14 deletions
diff --git a/share/man/man9/mbuf.9 b/share/man/man9/mbuf.9
index 47b535bdcfa..7df9da2f4ff 100644
--- a/share/man/man9/mbuf.9
+++ b/share/man/man9/mbuf.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mbuf.9,v 1.64 2013/06/11 01:01:15 dlg Exp $
+.\" $OpenBSD: mbuf.9,v 1.65 2013/08/21 05:21:42 dlg Exp $
.\"
.\" Copyright (c) 2001 Jean-Jacques Bernard-Gundol <jjbg@openbsd.org>
.\" All rights reserved.
@@ -25,7 +25,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 11 2013 $
+.Dd $Mdocdate: August 21 2013 $
.Dt MBUF 9
.Os
.Sh NAME
@@ -76,8 +76,7 @@
.Ft void
.Fn m_cat "struct mbuf *m" "struct mbuf *n"
.Ft struct mbuf *
-.Fn m_devget "char *buf" "int totlen" "int off" "struct ifnet *ifp" \
-"void (*func)(const void *, void *, size_t)"
+.Fn m_devget "char *buf" "int totlen" "int off" "struct ifnet *ifp"
.Ft int
.Fn m_apply "struct mbuf *m" "int off" "int len" \
"int (*func)(caddr_t, caddr_t, unsigned int)" "caddr_t fstate"
@@ -584,19 +583,11 @@ Concatenate the mbuf chain pointed to by
to the mbuf chain pointed to by
.Fa m .
The mbuf chains must be of the same type.
-.It Fn m_devget "char *buf" "int totlen" "int off" "struct ifnet *ifp" \
-"void (*func)(const void *, void *, size_t)"
+.It Fn m_devget "char *buf" "int totlen" "int off" "struct ifnet *ifp"
Copy
.Fa totlen
bytes of data from device local memory pointed to by
-.Fa buf
-using the function
-.Fa func
-or
-.Fn bcopy
-if
-.Fa func
-is NULL.
+.Fa buf .
The data is copied into an mbuf chain at offset
.Fa off
and a pointer to the head of the chain is returned.