diff options
author | jhb <jhb@FreeBSD.org> | 2007-03-09 16:44:58 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2007-03-09 16:44:58 +0000 |
commit | 24c3d87828bd5c9e87fc325c233800e8505e478a (patch) | |
tree | 84942bb9fbbebe2666311e54272afc45a760f3ae | |
parent | 43381522970049bb6c753d7a08ab23fb44408a0b (diff) | |
download | FreeBSD-src-24c3d87828bd5c9e87fc325c233800e8505e478a.zip FreeBSD-src-24c3d87828bd5c9e87fc325c233800e8505e478a.tar.gz |
- Sort rwlock functions similar to the order in mutex(9).
- Add a missing MLINK.
-rw-r--r-- | share/man/man9/Makefile | 1 | ||||
-rw-r--r-- | share/man/man9/rwlock.9 | 15 |
2 files changed, 10 insertions, 6 deletions
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile index fa1d16e..2cf81fb 100644 --- a/share/man/man9/Makefile +++ b/share/man/man9/Makefile @@ -921,6 +921,7 @@ MLINKS+=rwlock.9 rw_assert.9 \ rwlock.9 rw_destroy.9 \ rwlock.9 rw_downgrade.9 \ rwlock.9 rw_init.9 \ + rwlock.9 rw_initialized.9 \ rwlock.9 rw_rlock.9 \ rwlock.9 rw_runlock.9 \ rwlock.9 RW_SYSINIT.9 \ 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 |