Home
last modified time | relevance | path

Searched refs:minor_lock (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/drivers/uio/
Duio.c36 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()
/Linux-v5.4/drivers/net/
Dtap.c110 spinlock_t minor_lock; member
417 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()
/Linux-v5.4/drivers/staging/pi433/
Dpi433_if.c55 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()
/Linux-v5.4/drivers/block/
Dxen-blkfront.c227 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()