Home
last modified time | relevance | path

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

/systemd-251/src/test/
Dtest-devnum-util.c31 assert_se(DEVICE_MAJOR_VALID(0U)); in TEST()
34 assert_se(DEVICE_MAJOR_VALID(1U)); in TEST()
37 assert_se(!DEVICE_MAJOR_VALID(-1U)); in TEST()
40 assert_se(DEVICE_MAJOR_VALID(1U << 10)); in TEST()
43 assert_se(DEVICE_MAJOR_VALID((1U << 12) - 1)); in TEST()
46 assert_se(!DEVICE_MAJOR_VALID((1U << 12))); in TEST()
49 assert_se(!DEVICE_MAJOR_VALID(1U << 25)); in TEST()
52 assert_se(!DEVICE_MAJOR_VALID(UINT32_MAX)); in TEST()
55 assert_se(!DEVICE_MAJOR_VALID(UINT64_MAX)); in TEST()
58 assert_se(DEVICE_MAJOR_VALID(major(0))); in TEST()
/systemd-251/src/basic/
Ddevnum-util.h18 #define DEVICE_MAJOR_VALID(x) \ macro
Ddevnum-util.c35 if (!DEVICE_MAJOR_VALID(x) || !DEVICE_MINOR_VALID(y)) in parse_devnum()
/systemd-251/src/login/
Dlogind-session-dbus.c430 if (!DEVICE_MAJOR_VALID(major) || !DEVICE_MINOR_VALID(minor)) in method_take_device()
480 if (!DEVICE_MAJOR_VALID(major) || !DEVICE_MINOR_VALID(minor)) in method_release_device()
511 if (!DEVICE_MAJOR_VALID(major) || !DEVICE_MINOR_VALID(minor)) in method_pause_device_complete()
/systemd-251/src/core/
Dbpf-devices.c431 if (safe_atou(name, &maj) >= 0 && DEVICE_MAJOR_VALID(maj)) in bpf_devices_allow_list_major()
/systemd-251/src/libsystemd/sd-device/
Dsd-device.c615 if (!DEVICE_MAJOR_VALID(maj)) in device_set_devnum()
/systemd-251/src/nspawn/
Dnspawn-oci.c811 if (!DEVICE_MAJOR_VALID(k)) in oci_device_major()