Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/
Dtap.c405 struct major_info *tap_major; in tap_get_major() local
407 list_for_each_entry_rcu(tap_major, &major_list, next) { in tap_get_major()
408 if (tap_major->major == major) in tap_get_major()
409 return tap_major; in tap_get_major()
418 struct major_info *tap_major; in tap_get_minor() local
421 tap_major = tap_get_major(MAJOR(major)); in tap_get_minor()
422 if (!tap_major) { in tap_get_minor()
427 spin_lock(&tap_major->minor_lock); in tap_get_minor()
428 retval = idr_alloc(&tap_major->minor_idr, tap, 1, TAP_NUM_DEVS, GFP_ATOMIC); in tap_get_minor()
435 spin_unlock(&tap_major->minor_lock); in tap_get_minor()
[all …]
/linux-6.12.1/include/linux/
Dif_tap.h81 int tap_create_cdev(struct cdev *tap_cdev, dev_t *tap_major,