Searched refs:is_block (Results 1 – 2 of 2) sorted by relevance
/systemd-251/src/libsystemd/sd-device/ |
D | test-sd-device.c | 22 bool is_block = false; in test_sd_device_one() local 111 is_block = streq_ptr(subsystem, "block"); in test_sd_device_one() 130 … fd = sd_device_open(d, O_CLOEXEC| O_NONBLOCK | (is_block ? O_RDONLY : O_NOCTTY | O_PATH)); in test_sd_device_one() 143 assert_se(sd_device_new_from_devnum(&dev, is_block ? 'b' : 'c', devnum) >= 0); in test_sd_device_one() 148 …assert_se(asprintf(&p, "/dev/%s/%u:%u", is_block ? "block" : "char", major(devnum), minor(devnum))… in test_sd_device_one()
|
/systemd-251/src/udev/ |
D | udevd.c | 860 bool is_block; in event_is_blocked() local 910 is_block = streq(subsystem, "block"); in event_is_blocked() 950 devnum == d && is_block == streq(s, "block")) in event_is_blocked()
|