diff options
author | jhb <jhb@FreeBSD.org> | 2007-03-09 16:52:26 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2007-03-09 16:52:26 +0000 |
commit | 83009be85d2bcecd40182a6b4bd17afa42265c3b (patch) | |
tree | cfaffd8b1562c7bd01887332534715322589848b /share/man/man9/sx.9 | |
parent | 24c3d87828bd5c9e87fc325c233800e8505e478a (diff) | |
download | FreeBSD-src-83009be85d2bcecd40182a6b4bd17afa42265c3b.zip FreeBSD-src-83009be85d2bcecd40182a6b4bd17afa42265c3b.tar.gz |
- Sort functions in the order that rwlock(9) and mutex(9) use.
- Markup sx_unlock() as a function rather than saying it is a macro.
The macro part is an implementation detail, and all the other sx_*lock()
functions are actually macros, too.
- Use the same style as rwlock(9) and mutex(9) to markup sx_assert() and
SX_SYSINIT() with respect to headers and kernel options.
- Add a missing MLINK.
Diffstat (limited to 'share/man/man9/sx.9')
-rw-r--r-- | share/man/man9/sx.9 | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/share/man/man9/sx.9 b/share/man/man9/sx.9 index 5a60fd1..a204ad5 100644 --- a/share/man/man9/sx.9 +++ b/share/man/man9/sx.9 @@ -39,11 +39,11 @@ .Nm sx_try_xlock , .Nm sx_sunlock , .Nm sx_xunlock , +.Nm sx_unlock , .Nm sx_try_upgrade , .Nm sx_downgrade , -.Nm sx_assert , -.Nm sx_unlock , .Nm sx_xlocked , +.Nm sx_assert , .Nm SX_SYSINIT .Nd kernel shared/exclusive lock .Sh SYNOPSIS @@ -66,22 +66,21 @@ .Fn sx_sunlock "struct sx *sx" .Ft void .Fn sx_xunlock "struct sx *sx" +.Ft void +.Fn sx_unlock "struct sx *sx" .Ft int .Fn sx_try_upgrade "struct sx *sx" .Ft void .Fn sx_downgrade "struct sx *sx" -.Ft void -.Fn sx_assert "struct sx *sx" "int what" .Ft int .Fn sx_xlocked "struct sx *sx" -.\" -.Ss Nm Ss utility macros -.Fn sx_unlock "struct sx *sx" -.Fn SX_SYSINIT "name" "struct sx *sx" "const char *description" -.\" -.Ss Kernel options +.Pp .Cd "options INVARIANTS" .Cd "options INVARIANT_SUPPORT" +.Ft void +.Fn sx_assert "struct sx *sx" "int what" +.In sys/kernel.h +.Fn SX_SYSINIT "name" "struct sx *sx" "const char *description" .Sh DESCRIPTION Shared/exclusive locks are used to protect data that are read far more often than they are written. |