Searched refs:unreg_sem (Results 1 – 2 of 2) sorted by relevance
113 lockdep_assert_held(&parent->unreg_sem); in mdev_device_remove_common()174 init_rwsem(&parent->unreg_sem); in mdev_register_device()239 down_write(&parent->unreg_sem); in mdev_unregister_device()246 up_write(&parent->unreg_sem); in mdev_unregister_device()309 if (!down_read_trylock(&parent->unreg_sem)) { in mdev_device_create()337 up_read(&parent->unreg_sem); in mdev_device_create()346 up_read(&parent->unreg_sem); in mdev_device_create()381 if (!down_read_trylock(&parent->unreg_sem)) in mdev_device_remove()385 up_read(&parent->unreg_sem); in mdev_device_remove()
24 struct rw_semaphore unreg_sem; member