Searched refs:tap_major (Results 1 – 2 of 2) sorted by relevance
405 struct major_info *tap_major; in tap_get_major() local407 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() local421 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 …]
81 int tap_create_cdev(struct cdev *tap_cdev, dev_t *tap_major,