diff options
Diffstat (limited to 'sys/kern/kern_sx.c')
-rw-r--r-- | sys/kern/kern_sx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_sx.c b/sys/kern/kern_sx.c index 37cb00a..1f0011c 100644 --- a/sys/kern/kern_sx.c +++ b/sys/kern/kern_sx.c @@ -101,6 +101,7 @@ CTASSERT(((SX_ADAPTIVESPIN | SX_RECURSE) & LO_CLASSFLAGS) == * Returns true if an exclusive lock is recursed. It assumes * curthread currently has an exclusive lock. */ +#define sx_recurse lock_object.lo_data #define sx_recursed(sx) ((sx)->sx_recurse != 0) static void assert_sx(struct lock_object *lock, int what); |