Home
last modified time | relevance | path

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

/include/linux/
Dpercpu-rwsem.h15 struct rw_semaphore rw_sem; /* slowpath */ member
25 .rw_sem = __RWSEM_INITIALIZER(name.rw_sem), \
40 rwsem_acquire_read(&sem->rw_sem.dep_map, 0, 0, _RET_IP_); in percpu_down_read()
79 rwsem_acquire_read(&sem->rw_sem.dep_map, 0, 1, _RET_IP_); in percpu_down_read_trylock()
96 rwsem_release(&sem->rw_sem.dep_map, 1, _RET_IP_); in percpu_up_read()
113 #define percpu_rwsem_is_held(sem) lockdep_is_held(&(sem)->rw_sem)
116 lockdep_assert_held(&(sem)->rw_sem)
121 lock_release(&sem->rw_sem.dep_map, 1, ip); in percpu_rwsem_release()
124 atomic_long_set(&sem->rw_sem.owner, RWSEM_OWNER_UNKNOWN); in percpu_rwsem_release()
131 lock_acquire(&sem->rw_sem.dep_map, 0, 1, read, 1, NULL, ip); in percpu_rwsem_acquire()
[all …]
Dfs.h1476 struct percpu_rw_semaphore rw_sem[SB_FREEZE_LEVELS]; member
1653 percpu_rwsem_acquire(&(sb)->s_writers.rw_sem[(lev)-1], 1, _THIS_IP_)
1655 percpu_rwsem_release(&(sb)->s_writers.rw_sem[(lev)-1], 1, _THIS_IP_)