summaryrefslogtreecommitdiffstats
path: root/share/man/man9/rwlock.9
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2007-03-09 16:44:58 +0000
committerjhb <jhb@FreeBSD.org>2007-03-09 16:44:58 +0000
commit24c3d87828bd5c9e87fc325c233800e8505e478a (patch)
tree84942bb9fbbebe2666311e54272afc45a760f3ae /share/man/man9/rwlock.9
parent43381522970049bb6c753d7a08ab23fb44408a0b (diff)
downloadFreeBSD-src-24c3d87828bd5c9e87fc325c233800e8505e478a.zip
FreeBSD-src-24c3d87828bd5c9e87fc325c233800e8505e478a.tar.gz
- Sort rwlock functions similar to the order in mutex(9).
- Add a missing MLINK.
Diffstat (limited to 'share/man/man9/rwlock.9')
-rw-r--r--share/man/man9/rwlock.915
1 files changed, 9 insertions, 6 deletions
diff --git a/share/man/man9/rwlock.9 b/share/man/man9/rwlock.9
index 08d147e..4dcddbc 100644
--- a/share/man/man9/rwlock.9
+++ b/share/man/man9/rwlock.9
@@ -32,11 +32,14 @@
.Nm rw_init ,
.Nm rw_rlock ,
.Nm rw_wlock ,
-.Nm rw_assert ,
.Nm rw_runlock ,
.Nm rw_wunlock ,
-.Nm rw_initialized ,
+.Nm rw_try_upgrade ,
+.Nm rw_downgrade ,
.Nm rw_destroy ,
+.Nm rw_initialized ,
+.Nm rw_wowned ,
+.Nm rw_assert ,
.Nm RW_SYSINIT
.Nd kernel reader/writer lock
.Sh SYNOPSIS
@@ -57,11 +60,11 @@
.Fn rw_try_upgrade "struct rwlock *rw"
.Ft void
.Fn rw_downgrade "struct rwlock *rw"
-.Ft int
-.Fn rw_initialized "struct rwlock *rw"
.Ft void
.Fn rw_destroy "struct rwlock *rw"
.Ft int
+.Fn rw_initialized "struct rwlock *rw"
+.Ft int
.Fn rw_wowned "struct rwlock *rw"
.Pp
.Cd "options INVARIANTS"
@@ -223,14 +226,14 @@ If
.Dv WITNESS
is not included in the kernel,
then it is impossible to assert that the current thread does or does not
-hold a shared lock.
+hold a read lock.
In the
.Pf non- Dv WITNESS
case, the
.Dv RA_LOCKED
and
.Dv RA_RLOCKED
-assertions merely check that some thread holds a shared lock.
+assertions merely check that some thread holds a read lock.
.Pp
Reader/writer is a bit of an awkward name.
An
OpenPOWER on IntegriCloud