diff options
author | 2014-01-22 00:09:02 +0000 | |
---|---|---|
committer | 2014-01-22 00:09:02 +0000 | |
commit | 4e58d6f3660ad424347b4a5bb9734be8b3a6a59e (patch) | |
tree | 0fb5203e9aa1de8a2f1473460a7001a1358768f1 | |
parent | add missing arguments to debug printfs (diff) | |
download | wireguard-openbsd-4e58d6f3660ad424347b4a5bb9734be8b3a6a59e.tar.xz wireguard-openbsd-4e58d6f3660ad424347b4a5bb9734be8b3a6a59e.zip |
wakeup_n and wakeup_one blurbs
-rw-r--r-- | share/man/man9/Makefile | 5 | ||||
-rw-r--r-- | share/man/man9/tsleep.9 | 18 |
2 files changed, 19 insertions, 4 deletions
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile index acea7fd8fa4..3096174874b 100644 --- a/share/man/man9/Makefile +++ b/share/man/man9/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.194 2014/01/21 21:46:54 kettenis Exp $ +# $OpenBSD: Makefile,v 1.195 2014/01/22 00:09:02 tedu Exp $ # $NetBSD: Makefile,v 1.4 1996/01/09 03:23:01 thorpej Exp $ # Makefile for section 9 (kernel function and variable) manual pages. @@ -341,7 +341,8 @@ MLINKS+=timeout.9 timeout_add.9 timeout.9 timeout_set.9 \ timeout.9 timeout_add_msec.9 \ timeout.9 timeout_add_usec.9 \ timeout.9 timeout_add_nsec.9 -MLINKS+=tsleep.9 wakeup.9 tsleep.9 msleep.9 +MLINKS+=tsleep.9 wakeup.9 tsleep.9 wakeup_n.9 tsleep.9 wakeup_one.9 \ + tsleep.9 msleep.9 MLINKS+=tvtohz.9 tstohz.9 MLINKS+=uiomove.9 uio.9 MLINKS+=usbd_transfer.9 usbd_setup_xfer.9 diff --git a/share/man/man9/tsleep.9 b/share/man/man9/tsleep.9 index b0df6e65c00..2b7ff42789b 100644 --- a/share/man/man9/tsleep.9 +++ b/share/man/man9/tsleep.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tsleep.9,v 1.7 2013/06/04 19:27:14 schwarze Exp $ +.\" $OpenBSD: tsleep.9,v 1.8 2014/01/22 00:09:02 tedu Exp $ .\" $NetBSD: sleep.9,v 1.11 1999/03/24 06:15:12 mycroft Exp $ .\" .\" Copyright (c) 1996 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: June 4 2013 $ +.Dd $Mdocdate: January 22 2014 $ .Dt TSLEEP 9 .Os .Sh NAME @@ -45,6 +45,10 @@ .Fn "msleep" "void *ident" "struct mutex *mtx" "int priority" "const char *wmesg" "int timo" .Ft void .Fn "wakeup" "void *ident" +.Ft void +.Fn "wakeup_n" "void *ident" "int count" +.Ft void +.Fn "wakeup_one" "void *ident" .Sh DESCRIPTION These functions implement voluntary context switching. .Fn tsleep @@ -153,6 +157,16 @@ change to the blocking conditions. For example, when two or more processes are waiting for an exclusive lock, only one of them will succeed in acquiring the lock when it is released. All others will have to go back to sleep and wait for the next opportunity. +.Pp +The +.Fn wakeup_n +and +.Fn wakeup_one +functions behave similarly to +.Fn wakeup +except that only +.Fa count +or one process, respectively, is marked runnable. .Sh RETURN VALUES .Fn tsleep and |