Searched refs:RWSEM_WRITER_LOCKED (Results 1 - 2 of 2) sorted by relevance

/linux-master/kernel/locking/
H A Drwsem.c117 #define RWSEM_WRITER_LOCKED (1UL << 0) macro
125 #define RWSEM_WRITER_MASK RWSEM_WRITER_LOCKED
260 if (atomic_long_try_cmpxchg_acquire(&sem->count, &tmp, RWSEM_WRITER_LOCKED)) {
293 * When the RWSEM_WRITER_LOCKED bit in count is set, the lock is owned
297 * (1) the RWSEM_WRITER_LOCKED isn't set in count,
640 new |= RWSEM_WRITER_LOCKED;
696 count | RWSEM_WRITER_LOCKED)) {
1009 (rcnt > 1) && !(count & RWSEM_WRITER_LOCKED))
1015 if (!(count & (RWSEM_WRITER_LOCKED | RWSEM_FLAG_HANDOFF))) {
1374 tmp = atomic_long_fetch_add_release(-RWSEM_WRITER_LOCKED,
[all...]
/linux-master/include/linux/
H A Drwsem.h70 #define RWSEM_WRITER_LOCKED (1UL << 0) macro
85 WARN_ON(!(atomic_long_read(&sem->count) & RWSEM_WRITER_LOCKED));

Completed in 202 milliseconds