Module Name: src
Committed By: riastradh
Date: Sun Mar 29 21:05:21 UTC 2015
Modified Files:
src/share/man/man9: bufferio.9
Log Message:
Clarify that getiobuf must be paired with putiobuf, not brelse.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 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.1 src/share/man/man9/bufferio.9:1.2
--- src/share/man/man9/bufferio.9:1.1 Sun Mar 29 20:56:01 2015
+++ src/share/man/man9/bufferio.9 Sun Mar 29 21:05:21 2015
@@ -1,4 +1,4 @@
-.\" $NetBSD: bufferio.9,v 1.1 2015/03/29 20:56:01 riastradh Exp $
+.\" $NetBSD: bufferio.9,v 1.2 2015/03/29 21:05:21 riastradh Exp $
.\"
.\" Copyright (c) 2015 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -341,6 +341,16 @@ If
is false,
returns null if none can be allocated immediately.
.Pp
+The resulting
+.Li struct buf
+pointer must eventually be passed to
+.Fn putiobuf
+to release it.
+Do
+.Em not
+use
+.Xr brelse 9 .
+.Pp
May sleep if
.Fa waitok
is true.