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

/linux-4.1.27/kernel/locking/
H A Dpercpu-rwsem.c18 /* ->rw_sem represents the whole percpu_rw_semaphore for lockdep */ __percpu_init_rwsem()
19 __init_rwsem(&brw->rw_sem, name, rwsem_key); __percpu_init_rwsem()
73 * Note: returns with lock_is_held(brw->rw_sem) == T for lockdep,
75 * of ->rw_sem in percpu_down/up_write().
81 rwsem_acquire_read(&brw->rw_sem.dep_map, 0, 0, _RET_IP_); percpu_down_read()
85 down_read(&brw->rw_sem); percpu_down_read()
88 __up_read(&brw->rw_sem); percpu_down_read()
93 rwsem_release(&brw->rw_sem.dep_map, 1, _RET_IP_); percpu_up_read()
124 * Finally the writer takes ->rw_sem for writing and blocks the new readers,
145 down_write(&brw->rw_sem); percpu_down_write()
157 up_write(&brw->rw_sem); percpu_up_write()
/linux-4.1.27/include/linux/
H A Dpercpu-rwsem.h13 struct rw_semaphore rw_sem; member in struct:percpu_rw_semaphore

Completed in 160 milliseconds