Home
last modified time | relevance | path

Searched refs:rwst_count (Results 1 – 2 of 2) sorted by relevance

/titanic_44/usr/src/uts/common/sys/
H A Drwstlock.h46 intptr_t rwst_count; member
60 #define RWST_HELD(l) ((l)->rwst_count != 0)
61 #define RWST_READ_HELD(l) ((l)->rwst_count > 0)
62 #define RWST_WRITE_HELD(l) ((l)->rwst_count < 0)
64 ((l)->rwst_count == (LONG_MIN | (intptr_t)curthread))
66 ((struct _kthread *)((l)->rwst_count & ~LONG_MIN)) : NULL)
75 #define RWST_READ_ENTER(l) (l)->rwst_count++
76 #define RWST_WRITE_ENTER(l) (l)->rwst_count = LONG_MIN | (intptr_t)curthread
77 #define RWST_READ_EXIT(l) (l)->rwst_count--
78 #define RWST_WRITE_EXIT(l) (l)->rwst_count = 0
/titanic_44/usr/src/uts/common/os/
H A Drwstlock.c84 readers = l->rwst_count; in rwst_enter_common()
111 readers = l->rwst_count; in rwst_enter_common()
182 l->rwst_count = 0; in rwst_init()
191 ASSERT(l->rwst_count == 0); in rwst_destroy()