summaryrefslogtreecommitdiff
path: root/share/man
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2008-05-06 20:57:20 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2008-05-06 20:57:20 +0000
commitec171bfaf31bd925a66747b3508fb3524a36afe9 (patch)
tree66bd2567b0112a4fe1f06ca0871b02ee0b4954e0 /share/man
parent1eed9bf6c704ac401ae8e0657f2ca1d96647174d (diff)
Add a PR_ZERO flag for pools, to compliment the M_ZERO
malloc flag, does the same thing. use it in a few places. OK tedu@, "then go ahead. and don't forget the manpage (-:" miod@
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man9/pool.98
1 files changed, 6 insertions, 2 deletions
diff --git a/share/man/man9/pool.9 b/share/man/man9/pool.9
index 884b5bbd2fb..1212e23e166 100644
--- a/share/man/man9/pool.9
+++ b/share/man/man9/pool.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pool.9,v 1.34 2007/05/31 19:20:00 jmc Exp $
+.\" $OpenBSD: pool.9,v 1.35 2008/05/06 20:57:19 thib Exp $
.\" $NetBSD: pool.9,v 1.18 2001/06/21 11:59:01 wiz Exp $
.\"
.\" Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: May 6 2008 $
.Dt POOL 9
.Os
.Sh NAME
@@ -212,6 +212,10 @@ will return
.Dv NULL
without waiting, allowing the caller to do its own garbage collection;
however, it will still wait if the pool is not yet at its hard limit.
+If
+.Dv PR_ZERO
+is passed and an item has been successfully allocated, it is zeroed before
+being returned to the caller.
.El
.Ss RETURNING ITEMS TO A POOL
.Fn pool_put