Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/
Dtap.c395 struct major_info *tap_major; in tap_get_major() local
397 list_for_each_entry_rcu(tap_major, &major_list, next) { in tap_get_major()
398 if (tap_major->major == major) in tap_get_major()
399 return tap_major; in tap_get_major()
408 struct major_info *tap_major; in tap_get_minor() local
411 tap_major = tap_get_major(MAJOR(major)); in tap_get_minor()
412 if (!tap_major) { in tap_get_minor()
417 spin_lock(&tap_major->minor_lock); in tap_get_minor()
418 retval = idr_alloc(&tap_major->minor_idr, tap, 1, TAP_NUM_DEVS, GFP_ATOMIC); in tap_get_minor()
425 spin_unlock(&tap_major->minor_lock); in tap_get_minor()
[all …]
/Linux-v5.4/include/linux/
Dif_tap.h80 int tap_create_cdev(struct cdev *tap_cdev, dev_t *tap_major,