Home
last modified time | relevance | path

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

/Linux-v5.15/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.15/drivers/net/
Dtap.c110 spinlock_t minor_lock; member
415 spin_lock(&tap_major->minor_lock); in tap_get_minor()
423 spin_unlock(&tap_major->minor_lock); in tap_get_minor()
441 spin_lock(&tap_major->minor_lock); in tap_free_minor()
446 spin_unlock(&tap_major->minor_lock); in tap_free_minor()
466 spin_lock(&tap_major->minor_lock); in dev_get_by_tap_file()
472 spin_unlock(&tap_major->minor_lock); in dev_get_by_tap_file()
1309 spin_lock_init(&tap_major->minor_lock); in tap_list_add()
/Linux-v5.15/drivers/staging/pi433/
Dpi433_if.c55 static DEFINE_MUTEX(minor_lock); /* Protect idr accesses */
938 mutex_lock(&minor_lock); in pi433_open()
940 mutex_unlock(&minor_lock); in pi433_open()
1055 mutex_lock(&minor_lock); in pi433_get_minor()
1064 mutex_unlock(&minor_lock); in pi433_get_minor()
1070 mutex_lock(&minor_lock); in pi433_free_minor()
1072 mutex_unlock(&minor_lock); in pi433_free_minor()
/Linux-v5.15/drivers/block/
Dxen-blkfront.c228 static DEFINE_SPINLOCK(minor_lock);
448 spin_lock(&minor_lock); in xlbd_reserve_minors()
457 spin_unlock(&minor_lock); in xlbd_reserve_minors()
461 spin_lock(&minor_lock); in xlbd_reserve_minors()
467 spin_unlock(&minor_lock); in xlbd_reserve_minors()
477 spin_lock(&minor_lock); in xlbd_release_minors()
479 spin_unlock(&minor_lock); in xlbd_release_minors()