Home
last modified time | relevance | path

Searched refs:tap_major (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.15/drivers/net/
Dtap.c393 struct major_info *tap_major; in tap_get_major() local
395 list_for_each_entry_rcu(tap_major, &major_list, next) { in tap_get_major()
396 if (tap_major->major == major) in tap_get_major()
397 return tap_major; in tap_get_major()
406 struct major_info *tap_major; in tap_get_minor() local
409 tap_major = tap_get_major(MAJOR(major)); in tap_get_minor()
410 if (!tap_major) { in tap_get_minor()
415 spin_lock(&tap_major->minor_lock); in tap_get_minor()
416 retval = idr_alloc(&tap_major->minor_idr, tap, 1, TAP_NUM_DEVS, GFP_ATOMIC); in tap_get_minor()
423 spin_unlock(&tap_major->minor_lock); in tap_get_minor()
[all …]
/Linux-v5.15/include/linux/
Dif_tap.h80 int tap_create_cdev(struct cdev *tap_cdev, dev_t *tap_major,