diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2008-10-14 18:01:54 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2008-10-14 18:01:54 +0000 |
commit | cbc88b3c14c04595503ce45046c13a37f77b5385 (patch) | |
tree | 71c6224ee28a75e73b9d01d08760ae100cbe250b /share | |
parent | 8e9707c8a7ef0ba1ba66f02dfad7dda445bf55c5 (diff) |
Change m_devget()'s outdated and unused "offset" argument: It is
now the offset into the first mbuf of the target chain before copying
the source data over. From FreeBSD.
Convert drivers' use of m_devget(). Mostly from thib@.
Update mbuf(9) man page.
ok claudio@, thib@
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/mbuf.9 | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/share/man/man9/mbuf.9 b/share/man/man9/mbuf.9 index 1dde48fa168..ed0e6628dd5 100644 --- a/share/man/man9/mbuf.9 +++ b/share/man/man9/mbuf.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mbuf.9,v 1.35 2008/09/18 15:16:30 naddy Exp $ +.\" $OpenBSD: mbuf.9,v 1.36 2008/10/14 18:01:53 naddy 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: September 18 2008 $ +.Dd $Mdocdate: October 14 2008 $ .Dt MBUF 9 .Os .Sh NAME @@ -581,15 +581,15 @@ Copy bytes of data from device local memory pointed to by .Fa buf using the function -.Fa func . -The data is copied into an mbuf chain and a pointer to the head of it -is returned. -If -.Fa off -is non-zero, it means the packet is trailer-encapsulated and +.Fa func +or +.Fn bcopy +if +.Fa func +is NULL. +The data is copied into an mbuf chain at offset .Fa off -bytes plus the type and length fields will be skipped before doing the -copy. +and a pointer to the head of the chain is returned. Returns NULL on failure. .It Fn m_zero "struct mbuf *m" Zeroize the data part of the mbufs in the mbuf chain pointed to by |