Searched refs:unreg_sem (Results 1 – 2 of 2) sorted by relevance
96 lockdep_assert_held(&parent->unreg_sem); in mdev_device_remove_common()158 init_rwsem(&parent->unreg_sem); in mdev_register_device()223 down_write(&parent->unreg_sem); in mdev_unregister_device()230 up_write(&parent->unreg_sem); in mdev_unregister_device()295 if (!down_read_trylock(&parent->unreg_sem)) { in mdev_device_create()322 up_read(&parent->unreg_sem); in mdev_device_create()332 up_read(&parent->unreg_sem); in mdev_device_create()363 if (!down_read_trylock(&parent->unreg_sem)) in mdev_device_remove()367 up_read(&parent->unreg_sem); in mdev_device_remove()
24 struct rw_semaphore unreg_sem; member