Lines Matching refs:max_dev
1294 int max_dev; in config_driver() local
1297 if (modctl(MODRESERVED, NULL, &max_dev) < 0) { in config_driver()
1303 if (major_num >= max_dev) { in config_driver()
1305 major_num, max_dev); in config_driver()
2173 int max_dev = 0; in update_name_to_major() local
2248 max_dev = 0; in update_name_to_major()
2251 max_dev = get_max_major(name_to_major); in update_name_to_major()
2261 if ((max_dev == ERROR) && (tmp == ERROR)) { in update_name_to_major()
2269 if (tmp > max_dev) in update_name_to_major()
2270 max_dev = tmp; in update_name_to_major()
2277 if (max_dev == ERROR) in update_name_to_major()
2289 max_dev++; in update_name_to_major()
2292 if (modctl(MODRESERVED, NULL, &max_dev) < 0) { in update_name_to_major()
2303 if ((num_list = calloc(max_dev, 1)) == NULL) { in update_name_to_major()
2311 if (fill_n2m_array(name_to_major, &num_list, &max_dev) != 0) { in update_name_to_major()
2315 if (fill_n2m_array(rem_name_to_major, &num_list, &max_dev) != 0) in update_name_to_major()
2327 for (i = 1; i < max_dev; i++) { in update_name_to_major()