diff options
author | John Baldwin <jhb@FreeBSD.org> | 2007-03-09 16:52:26 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2007-03-09 16:52:26 +0000 |
commit | cc61ffc3fb80757c75fab50c670f3fe1332a7af1 (patch) | |
tree | cfaffd8b1562c7bd01887332534715322589848b /share/man/man9/sx.9 | |
parent | 7d3052bbc453024000d1393b0a001843ae3b68db (diff) |
- 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.
Notes
Notes:
svn path=/head/; revision=167371
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 5a60fd1dbbcc..a204ad5968b2 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. |