Module Name:    src
Committed By:   riastradh
Date:           Mon Mar 30 13:17:14 UTC 2015

Modified Files:
        src/share/man/man9: bufferio.9

Log Message:
Note reusing bufs requires clearing BO_DONE.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/share/man/man9/bufferio.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man9/bufferio.9
diff -u src/share/man/man9/bufferio.9:1.6 src/share/man/man9/bufferio.9:1.7
--- src/share/man/man9/bufferio.9:1.6	Mon Mar 30 13:10:04 2015
+++ src/share/man/man9/bufferio.9	Mon Mar 30 13:17:14 2015
@@ -1,4 +1,4 @@
-.\"	$NetBSD: bufferio.9,v 1.6 2015/03/30 13:10:04 riastradh Exp $
+.\"	$NetBSD: bufferio.9,v 1.7 2015/03/30 13:17:14 riastradh Exp $
 .\"
 .\" Copyright (c) 2015 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -165,6 +165,14 @@ is not specified, the user may wait for 
 with
 .Fn biowait bp .
 .El
+.Pp
+Once an I/O transfer has completed, its
+.Li struct buf
+may be reused, but the user must first clear the
+.Dv BO_DONE
+flag of
+.Fa bp Ns Li "->b_oflags"
+before reusing it.
 .Sh NESTED I/O TRANSFERS
 Sometimes an I/O transfer from a single buffer in memory cannot go to a
 single location on a block device: it must be split up into smaller

Reply via email to