summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2010-03-08 21:56:18 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2010-03-08 21:56:18 +0000
commit2036c060ef728790b75a872942c387a4aa5c3a7c (patch)
tree29d7eda29c479a8b3d64fb6cc430100438fbd388
parent6e150b857af30efade6fb9ccd20efc40f242edba (diff)
document PR_NOWAIT.
(for those who've forgotten, if you can't sleep in pool_get, use PR_NOWAIT, not zero. it makes the intention a lot clearer. prompted by deraadt and jsing. ok jmc@
-rw-r--r--share/man/man9/pool.911
1 files changed, 8 insertions, 3 deletions
diff --git a/share/man/man9/pool.9 b/share/man/man9/pool.9
index 85bcb7d1697..1d9889fdc59 100644
--- a/share/man/man9/pool.9
+++ b/share/man/man9/pool.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pool.9,v 1.40 2009/01/15 21:20:15 jmc Exp $
+.\" $OpenBSD: pool.9,v 1.41 2010/03/08 21:56:17 oga 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: January 15 2009 $
+.Dd $Mdocdate: March 8 2010 $
.Dt POOL 9
.Os
.Sh NAME
@@ -150,7 +150,8 @@ The handle identifying the pool resource instance.
.It Fa flags
One or more of
.Dv PR_URGENT ,
-.Dv PR_WAITOK
+.Dv PR_WAITOK ,
+.Dv PR_NOWAIT
or
.Dv PR_LIMITFAIL ,
that define behaviour in case the pooled resources are depleted.
@@ -162,6 +163,10 @@ Otherwise
.Fn pool_get
returns
.Dv NULL .
+.Dv PR_NOWAIT
+should be provided in cases where
+.Dv PR_WAITOK
+is not.
If
.Dv PR_URGENT
is specified and no items are available and