Searched refs:minor_lock (Results 1 – 4 of 4) sorted by relevance
36 static DEFINE_MUTEX(minor_lock);403 mutex_lock(&minor_lock); in uio_get_minor()412 mutex_unlock(&minor_lock); in uio_get_minor()418 mutex_lock(&minor_lock); in uio_free_minor()420 mutex_unlock(&minor_lock); in uio_free_minor()465 mutex_lock(&minor_lock); in uio_open()467 mutex_unlock(&minor_lock); in uio_open()
110 spinlock_t minor_lock; member417 spin_lock(&tap_major->minor_lock); in tap_get_minor()425 spin_unlock(&tap_major->minor_lock); in tap_get_minor()443 spin_lock(&tap_major->minor_lock); in tap_free_minor()448 spin_unlock(&tap_major->minor_lock); in tap_free_minor()468 spin_lock(&tap_major->minor_lock); in dev_get_by_tap_file()474 spin_unlock(&tap_major->minor_lock); in dev_get_by_tap_file()1326 spin_lock_init(&tap_major->minor_lock); in tap_list_add()
55 static DEFINE_MUTEX(minor_lock); /* Protect idr accesses */948 mutex_lock(&minor_lock); in pi433_open()950 mutex_unlock(&minor_lock); in pi433_open()1065 mutex_lock(&minor_lock); in pi433_get_minor()1074 mutex_unlock(&minor_lock); in pi433_get_minor()1080 mutex_lock(&minor_lock); in pi433_free_minor()1082 mutex_unlock(&minor_lock); in pi433_free_minor()
227 static DEFINE_SPINLOCK(minor_lock);435 spin_lock(&minor_lock); in xlbd_reserve_minors()444 spin_unlock(&minor_lock); in xlbd_reserve_minors()448 spin_lock(&minor_lock); in xlbd_reserve_minors()454 spin_unlock(&minor_lock); in xlbd_reserve_minors()464 spin_lock(&minor_lock); in xlbd_release_minors()466 spin_unlock(&minor_lock); in xlbd_release_minors()