Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/char/
Dmisc.c63 #define DYNAMIC_MINORS 128 /* like dynamic majors */ macro
64 static DECLARE_BITMAP(misc_minors, DYNAMIC_MINORS);
186 int i = find_first_zero_bit(misc_minors, DYNAMIC_MINORS); in misc_register()
188 if (i >= DYNAMIC_MINORS) { in misc_register()
192 misc->minor = DYNAMIC_MINORS - i - 1; in misc_register()
212 int i = DYNAMIC_MINORS - misc->minor - 1; in misc_register()
214 if (i < DYNAMIC_MINORS && i >= 0) in misc_register()
243 int i = DYNAMIC_MINORS - misc->minor - 1; in misc_deregister()
251 if (i < DYNAMIC_MINORS && i >= 0) in misc_deregister()