summaryrefslogtreecommitdiff
path: root/share/man
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2006-05-07 20:24:46 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2006-05-07 20:24:46 +0000
commite06c521ec696407c1535283873741d9d772dc0c9 (patch)
treed745eaf54875234b71fb80537924233f40de490f /share/man
parentcb5f67fb2c09e9614731ba495b04ff4e14b9fc69 (diff)
Pool drains are gone, okay tedu@
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man9/Makefile4
-rw-r--r--share/man/man9/pool.925
2 files changed, 3 insertions, 26 deletions
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile
index 85fce92c72d..0e1b342ee23 100644
--- a/share/man/man9/Makefile
+++ b/share/man/man9/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.112 2006/04/20 20:32:31 pedro Exp $
+# $OpenBSD: Makefile,v 1.113 2006/05/07 20:24:45 pedro Exp $
# $NetBSD: Makefile,v 1.4 1996/01/09 03:23:01 thorpej Exp $
# Makefile for section 9 (kernel function and variable) manual pages.
@@ -230,7 +230,7 @@ MLINKS+=pmap.9 pmap_init.9 pmap.9 pmap_enter.9 pmap.9 pmap_remove.9 \
pmap.9 pmap_steal_memory.9 pmap.9 pmap_growkernel.9 \
pmap.9 pmap_update.9 pmap.9 pmap_collect.9 pmap.9 pmap_virtual_space.9 \
pmap.9 pmap_copy.9 pmap.9 pmap_kenter_pa.9 pmap.9 pmap_kremove.9
-MLINKS+=pool.9 pool_init.9 pool.9 pool_destroy.9 pool.9 pool_set_drain_hook.9 \
+MLINKS+=pool.9 pool_init.9 pool.9 pool_destroy.9 \
pool.9 pool_get.9 pool.9 pool_put.9 pool.9 pool_prime.9 \
pool.9 pool_sethiwat.9 pool.9 pool_setlowat.9 \
pool.9 pool_sethardlimit.9 pool.9 pool_cache_init.9 \
diff --git a/share/man/man9/pool.9 b/share/man/man9/pool.9
index de968670b52..f68d5c028fb 100644
--- a/share/man/man9/pool.9
+++ b/share/man/man9/pool.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pool.9,v 1.32 2005/09/30 18:04:45 jmc Exp $
+.\" $OpenBSD: pool.9,v 1.33 2006/05/07 20:24:45 pedro Exp $
.\" $NetBSD: pool.9,v 1.18 2001/06/21 11:59:01 wiz Exp $
.\"
.\" Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -41,7 +41,6 @@
.Sh NAME
.Nm pool_init ,
.Nm pool_destroy ,
-.Nm pool_set_drain_hook ,
.Nm pool_get ,
.Nm pool_put ,
.Nm pool_prime ,
@@ -72,12 +71,6 @@
.Fo pool_destroy
.Fa "struct pool *pp"
.Fc
-.Ft void
-.Fo pool_set_drain_hook
-.Fa "struct pool *pp"
-.Fa "void (*fn)(void *, int)"
-.Fa "void *arg"
-.Fc
.Ft void *
.Fn pool_get "struct pool *pp" "int flags"
.Ft void
@@ -176,22 +169,6 @@ 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
-function can be used to specify a function that will be called when
-memory is running low.
-The callback
-.Fa fn
-will be called with the arguments
-.Fa arg
-which is the third argument to
-.Fn pool_set_drain_hook
-and
-.Fa flags
-which will have
-.Dv PR_WAITOK
-set if the drain hook is allowed to sleep.
.Ss ALLOCATING ITEMS FROM A POOL
.Fn pool_get
allocates an item from the pool and returns a pointer to it.