Searched refs:minor_lock (Results 1 – 4 of 4) sorted by relevance
36 static DEFINE_MUTEX(minor_lock);405 mutex_lock(&minor_lock); in uio_get_minor()414 mutex_unlock(&minor_lock); in uio_get_minor()420 mutex_lock(&minor_lock); in uio_free_minor()422 mutex_unlock(&minor_lock); in uio_free_minor()467 mutex_lock(&minor_lock); in uio_open()471 mutex_unlock(&minor_lock); in uio_open()475 mutex_unlock(&minor_lock); in uio_open()
112 spinlock_t minor_lock; member427 spin_lock(&tap_major->minor_lock); in tap_get_minor()435 spin_unlock(&tap_major->minor_lock); in tap_get_minor()453 spin_lock(&tap_major->minor_lock); in tap_free_minor()458 spin_unlock(&tap_major->minor_lock); in tap_free_minor()478 spin_lock(&tap_major->minor_lock); in dev_get_by_tap_file()484 spin_unlock(&tap_major->minor_lock); in dev_get_by_tap_file()1353 spin_lock_init(&tap_major->minor_lock); in tap_list_add()
56 static DEFINE_MUTEX(minor_lock); /* Protect idr accesses */950 mutex_lock(&minor_lock); in pi433_open()952 mutex_unlock(&minor_lock); in pi433_open()1064 mutex_lock(&minor_lock); in pi433_get_minor()1073 mutex_unlock(&minor_lock); in pi433_get_minor()1079 mutex_lock(&minor_lock); in pi433_free_minor()1081 mutex_unlock(&minor_lock); in pi433_free_minor()
238 static DEFINE_SPINLOCK(minor_lock);456 spin_lock(&minor_lock); in xlbd_reserve_minors()465 spin_unlock(&minor_lock); in xlbd_reserve_minors()469 spin_lock(&minor_lock); in xlbd_reserve_minors()475 spin_unlock(&minor_lock); in xlbd_reserve_minors()485 spin_lock(&minor_lock); in xlbd_release_minors()487 spin_unlock(&minor_lock); in xlbd_release_minors()