summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2006-08-16 10:19:00 +0000
committerdlg <dlg@openbsd.org>2006-08-16 10:19:00 +0000
commit9e182bd4191b92660261dc400a0bb31ff993af96 (patch)
tree9dad0c8276eb0be05f59724e2529bee832f0cdd8
parentdocument updating ports, mention sqlports, update documentation for (diff)
downloadwireguard-openbsd-9e182bd4191b92660261dc400a0bb31ff993af96.tar.xz
wireguard-openbsd-9e182bd4191b92660261dc400a0bb31ff993af96.zip
document the name argument to rw_init.
ok mbalmer@ jmc@ pedro@
-rw-r--r--share/man/man9/rwlock.96
1 files changed, 5 insertions, 1 deletions
diff --git a/share/man/man9/rwlock.9 b/share/man/man9/rwlock.9
index 6e7e2bb32cf..70b10371b72 100644
--- a/share/man/man9/rwlock.9
+++ b/share/man/man9/rwlock.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: rwlock.9,v 1.2 2006/05/07 20:15:06 tedu Exp $
+.\" $OpenBSD: rwlock.9,v 1.3 2006/08/16 10:19:00 dlg Exp $
.\"
.\" Copyright (c) 2006 Pedro Martelletto <pedro@openbsd.org>
.\" All rights reserved.
@@ -48,6 +48,10 @@ The
.Fn rw_init
function is used to initiate the lock pointed to by
.Fa rwl .
+The
+.Fa name
+argument specifies the name of the lock, which is used as the wait message
+if the process needs to sleep.
.Pp
The
.Fn rw_enter_read