Lines Matching full:minor
26 * Handling of mouse minor numbers for kerneld:
87 seq_printf(seq, "%3i %s\n", p->minor, p->name ? p->name : ""); in misc_seq_show()
102 int minor = iminor(inode); in misc_open() local
110 if (iter->minor != minor) in misc_open()
119 request_module("char-major-%d-%d", MISC_MAJOR, minor); in misc_open()
123 if (iter->minor != minor) in misc_open()
161 * Register a miscellaneous device with the kernel. If the minor
162 * number is set to %MISC_DYNAMIC_MINOR a minor number is assigned
163 * and placed in the minor field of the structure. For other cases
164 * the minor number requested is used.
179 bool is_dynamic = (misc->minor == MISC_DYNAMIC_MINOR); in misc_register()
192 misc->minor = DYNAMIC_MINORS - i - 1; in misc_register()
198 if (c->minor == misc->minor) { in misc_register()
205 dev = MKDEV(MISC_MAJOR, misc->minor); in misc_register()
212 int i = DYNAMIC_MINORS - misc->minor - 1; in misc_register()
216 misc->minor = MISC_DYNAMIC_MINOR; in misc_register()
243 int i = DYNAMIC_MINORS - misc->minor - 1; in misc_deregister()
250 device_destroy(misc_class, MKDEV(MISC_MAJOR, misc->minor)); in misc_deregister()