diff options
author | 2010-03-08 21:56:17 +0000 | |
---|---|---|
committer | 2010-03-08 21:56:17 +0000 | |
commit | a67cffda18a91daeed1d3441af9c5d4cf020c2a8 (patch) | |
tree | fca8ee7fde7946ca51b2da47c1a0016efe7cc933 | |
parent | argh, in del too, simultaneously spotted by kettenis and me (diff) | |
download | wireguard-openbsd-a67cffda18a91daeed1d3441af9c5d4cf020c2a8.tar.xz wireguard-openbsd-a67cffda18a91daeed1d3441af9c5d4cf020c2a8.zip |
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.9 | 11 |
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 |