From ec171bfaf31bd925a66747b3508fb3524a36afe9 Mon Sep 17 00:00:00 2001 From: "Thordur I. Bjornsson" Date: Tue, 6 May 2008 20:57:20 +0000 Subject: 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@ --- share/man/man9/pool.9 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'share/man') 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 -- cgit v1.2.3