Let there be no mistake, m_makewritable() does not guarantee that

the writable bytes [off, off+len) are consecutive.
This commit is contained in:
dyoung 2006-07-28 17:30:53 +00:00
parent 7ab69f08a8
commit 01868ae406
1 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: mbuf.9,v 1.41 2006/03/29 19:36:55 riz Exp $ .\" $NetBSD: mbuf.9,v 1.42 2006/07/28 17:30:53 dyoung Exp $
.\" .\"
.\" Copyright (c) 1997 The NetBSD Foundation, Inc. .\" Copyright (c) 1997 The NetBSD Foundation, Inc.
.\" All rights reserved. .\" All rights reserved.
@ -384,6 +384,14 @@ are writable.
When it meets read-only mbufs, it allocates new mbufs, adjusts the chain as When it meets read-only mbufs, it allocates new mbufs, adjusts the chain as
.Fn m_copyback_cow .Fn m_copyback_cow
does, and copies the original content into them. does, and copies the original content into them.
.Fn m_makewritable
does
.Em not
guarantee that all
.Fa len
bytes at
.Fa off
are consecutive.
The The
.Fa how .Fa how
parameter is a choice of parameter is a choice of