diff options
author | dchagin <dchagin@FreeBSD.org> | 2014-12-13 21:00:10 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2014-12-13 21:00:10 +0000 |
commit | 6f2b57128c8cdb88f2777eed3c99e866c3c53e04 (patch) | |
tree | 953adb99f01e8d4c4fb2634bbc85b752a2c305b1 /share/man/man9/sx.9 | |
parent | 7b50e3bb4b97cc0c655bf237c04e5caff51c5960 (diff) | |
download | FreeBSD-src-6f2b57128c8cdb88f2777eed3c99e866c3c53e04.zip FreeBSD-src-6f2b57128c8cdb88f2777eed3c99e866c3c53e04.tar.gz |
Add _NEW flag to mtx(9), sx(9), rmlock(9) and rwlock(9).
A _NEW flag passed to _init_flags() to avoid check for double-init.
Differential Revision: https://reviews.freebsd.org/D1208
Reviewed by: jhb, wblock
MFC after: 1 Month
Diffstat (limited to 'share/man/man9/sx.9')
-rw-r--r-- | share/man/man9/sx.9 | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/share/man/man9/sx.9 b/share/man/man9/sx.9 index b998749..01fffaa 100644 --- a/share/man/man9/sx.9 +++ b/share/man/man9/sx.9 @@ -26,7 +26,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 16, 2011 +.Dd December 13, 2014 .Dt SX 9 .Os .Sh NAME @@ -144,6 +144,15 @@ Allow threads to recursively acquire exclusive locks for .It Dv SX_QUIET Do not log any operations for this lock via .Xr ktr 4 . +.It Dv SX_NEW +If the kernel has been compiled with +.Cd "options INVARIANTS" , +.Fn sx_init +will assert that the +.Fa sx +has not been initialized multiple times without intervening calls to +.Fn sx_destroy +unless this option is specified. .El .Pp Shared/exclusive locks are destroyed with |