diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile index fa1d16ebe449..2cf81fb2198b 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 08d147ef257a..4dcddbc0e61d 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