Home
last modified time | relevance | path

Searched refs:unreg_sem (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-6.6/drivers/vfio/mdev/
H A Dmdev_core.c26 /* Caller must hold parent unreg_sem read or write lock */
33 lockdep_assert_held(&parent->unreg_sem); in mdev_device_remove_common()
68 init_rwsem(&parent->unreg_sem); in mdev_register_parent()
100 down_write(&parent->unreg_sem); in mdev_unregister_parent()
104 up_write(&parent->unreg_sem); in mdev_unregister_parent()
181 if (!down_read_trylock(&parent->unreg_sem)) { in mdev_device_create()
200 up_read(&parent->unreg_sem); in mdev_device_create()
207 up_read(&parent->unreg_sem); in mdev_device_create()
238 if (!down_read_trylock(&parent->unreg_sem)) in mdev_device_remove()
242 up_read(&parent->unreg_sem); in mdev_device_remove()
[all...]
/kernel/linux/linux-5.10/drivers/vfio/mdev/
H A Dmdev_core.c102 /* Caller must hold parent unreg_sem read or write lock */
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()
[all...]
H A Dmdev_private.h24 struct rw_semaphore unreg_sem; member
/kernel/linux/linux-6.6/include/linux/
H A Dmdev.h45 struct rw_semaphore unreg_sem; member

Completed in 2 milliseconds