Searched refs:READER_BIAS (Results 1 – 3 of 3) sorted by relevance
8 #define READER_BIAS (1U << 31) macro18 .readers = ATOMIC_INIT(READER_BIAS), \25 atomic_set(&(rwbase)->readers, READER_BIAS); \31 return atomic_read(&rwb->readers) != READER_BIAS; in rw_base_is_locked()
191 (void)atomic_add_return_release(READER_BIAS - bias, &rwb->readers); in __rwbase_write_unlock()243 atomic_sub(READER_BIAS, &rwb->readers); in rwbase_write_lock()282 atomic_sub(READER_BIAS, &rwb->readers); in rwbase_write_trylock()
1459 return count < 0 && count != READER_BIAS; in is_rwsem_reader_owned()
Completed in 6 milliseconds