Searched refs:TAP_NUM_DEVS (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ |
H A D | tap.c | 104 #define TAP_NUM_DEVS (1U << MINORBITS) macro 428 retval = idr_alloc(&tap_major->minor_idr, tap, 1, TAP_NUM_DEVS, GFP_ATOMIC); in tap_get_minor() 1366 err = alloc_chrdev_region(tap_major, 0, TAP_NUM_DEVS, device_name); in tap_create_cdev() 1372 err = cdev_add(tap_cdev, *tap_major, TAP_NUM_DEVS); in tap_create_cdev() 1385 unregister_chrdev_region(*tap_major, TAP_NUM_DEVS); in tap_create_cdev() 1396 unregister_chrdev_region(major, TAP_NUM_DEVS); in tap_destroy_cdev()
|