Lines Matching refs:maj
334 const unsigned *maj, in allow_list_device_pattern() argument
344 if (maj && min) in allow_list_device_pattern()
345 return bpf_prog_allow_list_device(prog, type, *maj, *min, acc); in allow_list_device_pattern()
346 else if (maj) in allow_list_device_pattern()
347 return bpf_prog_allow_list_major(prog, type, *maj, acc); in allow_list_device_pattern()
355 if (maj && min) in allow_list_device_pattern()
356 xsprintf(buf, "%c %u:%u %s", type, *maj, *min, acc); in allow_list_device_pattern()
357 else if (maj) in allow_list_device_pattern()
358 xsprintf(buf, "%c %u:* %s", type, *maj, acc); in allow_list_device_pattern()
409 unsigned maj = major(rdev), min = minor(rdev); in bpf_devices_allow_list_device() local
410 return allow_list_device_pattern(prog, path, S_ISCHR(mode) ? 'c' : 'b', &maj, &min, acc); in bpf_devices_allow_list_device()
420 unsigned maj; in bpf_devices_allow_list_major() local
431 if (safe_atou(name, &maj) >= 0 && DEVICE_MAJOR_VALID(maj)) in bpf_devices_allow_list_major()
434 return allow_list_device_pattern(prog, path, type, &maj, NULL, acc); in bpf_devices_allow_list_major()
478 r = safe_atou(p, &maj); in bpf_devices_allow_list_major()
481 if (maj <= 0) in bpf_devices_allow_list_major()
491 (void) allow_list_device_pattern(prog, path, type, &maj, NULL, acc); in bpf_devices_allow_list_major()