summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-04-03 00:33:55 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-04-03 00:33:55 +0000
commit5860ba717fe4b0240578887646ba4a8051492afc (patch)
tree604e2d15169123fe6e11d30fff152230ed892f33 /share
parentd0c0e906ee8fc6b9029b2b4a6ff11f03b60396fd (diff)
Document pool_destroy. From NetBSD through Kamil Andrusz <wizz@mniam.net>
pr 2507
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/pool.912
1 files changed, 11 insertions, 1 deletions
diff --git a/share/man/man9/pool.9 b/share/man/man9/pool.9
index 24785646a11..69ee2a99d82 100644
--- a/share/man/man9/pool.9
+++ b/share/man/man9/pool.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pool.9,v 1.17 2002/02/25 04:53:16 dhartmei Exp $
+.\" $OpenBSD: pool.9,v 1.18 2002/04/03 00:33:54 art Exp $
.\" $NetBSD: pool.9,v 1.18 2001/06/21 11:59:01 wiz Exp $
.\"
.\" Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -60,6 +60,10 @@
.Fa "struct pool_allocator *palloc"
.Fc
.Ft void
+.Fo pool_destroy
+.Fa "struct pool *pp"
+.Fc
+.Ft void
.Fo pool_set_drain_hook
.Fa "struct pool *pp"
.Fa "void (*fun)(void *, int)"
@@ -155,6 +159,12 @@ It is recommended to set this to
if the pool will never be accessed in interrupt context, since that
allocator is much more efficient.
.El
+.Ss DESTROYING A POOL
+The
+.Fn pool_destroy
+function destroys a resource pool. It takes a single argument
+.Fa pp
+identifying the pool resource instance.
.Ss SETTING DRAIN CALLBACK
The
.Fn pool_set_drain_hook