summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2014-07-02 00:39:43 +0000
committerdlg <dlg@openbsd.org>2014-07-02 00:39:43 +0000
commite6ab82bd91736117282da4f7b1ec693da003a285 (patch)
tree262584be3b62dab87c1c871fe33d7dc23af5e607
parentpools havent needed to include <sys/time.h> for 7 or 8 years. (diff)
downloadwireguard-openbsd-e6ab82bd91736117282da4f7b1ec693da003a285.tar.xz
wireguard-openbsd-e6ab82bd91736117282da4f7b1ec693da003a285.zip
add a CONTEXT section.
-rw-r--r--share/man/man9/pool.924
1 files changed, 22 insertions, 2 deletions
diff --git a/share/man/man9/pool.9 b/share/man/man9/pool.9
index 80243d473b2..7473b2bd7f7 100644
--- a/share/man/man9/pool.9
+++ b/share/man/man9/pool.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pool.9,v 1.45 2013/07/17 20:21:54 schwarze Exp $
+.\" $OpenBSD: pool.9,v 1.46 2014/07/02 00:39:43 dlg Exp $
.\" $NetBSD: pool.9,v 1.18 2001/06/21 11:59:01 wiz Exp $
.\"
.\" Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 17 2013 $
+.Dd $Mdocdate: July 2 2014 $
.Dt POOL 9
.Os
.Sh NAME
@@ -320,6 +320,26 @@ Alternatively, the
.Dv PR_DEBUGCHK
flag can be passed to enable pool internal consistency checks before and
after each allocation and free.
+
+.Sh CONTEXT
+.Fn pool_init ,
+.Fn pool_destroy ,
+.Fn pool_prime ,
+.Fn pool_setipl ,
+.Fn pool_sethiwat ,
+.Fn pool_setlowat ,
+and
+.Fn pool_sethardlimit
+can be called during autoconf or from process context.
+.Pp
+.Fn pool_get
+and
+.Fn pool_put
+can be called during autoconf or from process context.
+If the pool has been initialised with an interrupt safe pool allocator
+they can also be called from interrupt context at or below the
+interrupt level specified by a call to
+.Fn pool_setipl .
.Sh CODE REFERENCES
The pool manager is implemented in the file
.Pa sys/kern/subr_pool.c .