diff options
author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2011-11-16 21:51:17 +0000 |
---|---|---|
committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2011-11-16 21:51:17 +0000 |
commit | d576deedb549253edd7dab4f594a77d52a98dc5f (patch) | |
tree | 0f843eda4349e58b83edfddade168cfeeb527616 /share/man/man9/sx.9 | |
parent | a9e3362a07d62fa626b1b4104fc70aee742e5421 (diff) | |
download | src-d576deedb549253edd7dab4f594a77d52a98dc5f.tar.gz src-d576deedb549253edd7dab4f594a77d52a98dc5f.zip |
Constify arguments for locking KPIs where possible.
This enables locking consumers to pass their own structures around as const and
be able to assert locks embedded into those structures.
Reviewed by: ed, kib, jhb
Notes
Notes:
svn path=/head/; revision=227588
Diffstat (limited to 'share/man/man9/sx.9')
-rw-r--r-- | share/man/man9/sx.9 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/man/man9/sx.9 b/share/man/man9/sx.9 index c75c6a70331f..b9987497ba40 100644 --- a/share/man/man9/sx.9 +++ b/share/man/man9/sx.9 @@ -26,7 +26,7 @@ .\" .\" $FreeBSD$ .\" -.Dd May 28, 2009 +.Dd November 16, 2011 .Dt SX 9 .Os .Sh NAME @@ -88,12 +88,12 @@ .Ft "struct thread *" .Fn sx_xholder "struct sx *sx" .Ft int -.Fn sx_xlocked "struct sx *sx" +.Fn sx_xlocked "const struct sx *sx" .Pp .Cd "options INVARIANTS" .Cd "options INVARIANT_SUPPORT" .Ft void -.Fn sx_assert "struct sx *sx" "int what" +.Fn sx_assert "const struct sx *sx" "int what" .In sys/kernel.h .Fn SX_SYSINIT "name" "struct sx *sx" "const char *description" .Sh DESCRIPTION |