/systemd-251/src/udev/ |
D | udevadm-info.c | 234 assert_se(val = path_startswith(str, "/dev/")); in print_record() 241 assert_se(val = path_startswith(str, "/dev/")); in print_record() 419 assert_se(node = path_startswith(node, "/dev/")); in query_device() 429 assert_se(devlink = path_startswith(devlink, "/dev/")); in query_device() 587 if (!path_startswith(next_path, device_path)) { in draw_tree() 588 more = !parent_path || path_startswith(next_path, parent_path); in draw_tree() 595 str = parent ? ASSERT_PTR(path_startswith(device_path, parent_path)) : device_path; in draw_tree() 718 path = path_join(path_startswith(optarg, prefix) ? NULL : prefix, optarg); in info_main()
|
D | udevadm-util.c | 14 if (path_startswith(path, "/sys/")) in find_device_from_path() 17 if (path_startswith(path, "/dev/")) { in find_device_from_path() 80 if (prefix && !path_startswith(id, prefix)) { in find_device()
|
D | udevadm-wait.c | 135 if (!path_startswith(*p, "/sys")) in device_monitor_handler() 163 if (!path_startswith(*p, "/dev")) in device_monitor_handler()
|
/systemd-251/src/login/ |
D | sysfs-show.c | 48 !path_startswith(sysfs, sub)) in show_sysfs_one() 75 if (path_startswith(lookahead_sysfs, sub) && in show_sysfs_one() 76 !path_startswith(lookahead_sysfs, sysfs)) { in show_sysfs_one()
|
D | logind-utmp.c | 54 p = path_startswith(tty, "/dev/"); in logind_wall_tty_filter()
|
/systemd-251/src/sysctl/ |
D | sysctl.c | 60 t = path_startswith(*i, "/proc/sys/"); in test_prefix() 64 if (path_startswith(p, t)) in test_prefix() 155 assert_se(key = path_startswith(*s, "/proc/sys")); in apply_all() 348 if (path_startswith(optarg, "/proc/sys")) in parse_argv()
|
/systemd-251/src/libsystemd/sd-device/ |
D | device-util.c | 52 if (path_startswith(syspath, syspath_parent)) in device_match_parent() 59 if (path_startswith(syspath, syspath_parent)) in device_match_parent()
|
D | sd-device.c | 149 if (!path_startswith(_syspath, "/sys/")) in device_set_syspath() 165 if (!path_startswith(syspath, "/sys")) { in device_set_syspath() 174 p = path_startswith(syspath, real_sys); in device_set_syspath() 188 if (path_startswith(syspath, "/sys/devices/")) { in device_set_syspath() 497 if (isempty(path_startswith(devname, "/dev"))) in sd_device_new_from_devname() 516 if (path_startswith(path, "/dev")) in sd_device_new_from_path() 856 assert(path_startswith(device->syspath, "/sys/")); in sd_device_get_syspath() 995 else if (!isempty(path_startswith(device->devpath, "/module/"))) in sd_device_get_subsystem() 1165 assert(path_startswith(device->devname, "/dev/")); in sd_device_get_devname()
|
/systemd-251/src/veritysetup/ |
D | veritysetup-generator.c | 397 if (path_startswith(du, "/dev/")) in create_disk() 413 if (path_startswith(hu, "/dev/")) in create_disk() 489 data_uuid = path_startswith(data_device, "/dev/disk/by-uuid/"); in add_veritytab_devices() 493 hash_uuid = path_startswith(hash_device, "/dev/disk/by-uuid/"); in add_veritytab_devices()
|
/systemd-251/src/basic/ |
D | devnum-util.c | 113 w = path_startswith(path, "/dev/block/"); in device_path_parse_major_minor() 117 w = path_startswith(path, "/dev/char/"); in device_path_parse_major_minor()
|
D | path-util.h | 61 static inline char* path_startswith(const char *path, const char *prefix) { in path_startswith() function 183 e = path_startswith(p, "/dev/"); in skip_dev_prefix()
|
D | chase-symlinks.c | 194 todo = path_startswith(buffer, root); in chase_symlinks() 245 path_startswith(done, root) && in chase_symlinks() 246 !path_startswith(parent, root)) in chase_symlinks()
|
D | conf-files.c | 215 p1 = path_startswith((*strv)[i], rdir); in conf_files_insert() 221 p2 = path_startswith(path, *dir); in conf_files_insert()
|
D | terminal-util.c | 529 e = path_startswith(name, "/dev/"); in vt_disallocate() 1035 w = path_startswith(fn, "/dev/"); in get_ctty() 1100 if (!path_startswith(p, "/dev/pts/")) in openpt_allocate()
|
/systemd-251/src/getty-generator/ |
D | getty-generator.c | 132 tty = path_startswith(tty, "/dev/") ?: tty; in run_container() 135 tty = path_startswith(tty, "pts/"); in run_container()
|
/systemd-251/src/cgls/ |
D | cgls.c | 239 } else if (path_startswith(*name, "/sys/fs/cgroup")) { in run() 293 if (path_startswith(cwd, "/sys/fs/cgroup")) { in run()
|
/systemd-251/src/shared/ |
D | discover-image.c | 243 (path && path_startswith(path, "/usr")) || in image_make() 684 if (path_startswith(i->path, "/dev")) in image_remove() 778 if (path_startswith(i->path, "/dev")) in image_rename() 1072 if (!path_startswith(path, "/dev/")) { in image_path_lock() 1283 q = path_startswith(path, root); in image_in_search_path() 1289 p = path_startswith(q, path); in image_in_search_path()
|
D | mount-util.c | 117 if (!path_startswith(path, prefix)) in umount_recursive() 255 if (!path_startswith(path, prefix)) in bind_remount_recursive_with_mountinfo() 282 if (!path_startswith(*i, prefix)) in bind_remount_recursive_with_mountinfo() 285 if (path_startswith(path, *i)) { in bind_remount_recursive_with_mountinfo()
|
D | mount-setup.c | 125 return path_startswith(path, "/sys/fs/cgroup/"); in mount_point_is_api() 142 … if (path_startswith(path, "/run/host")) /* All mounts passed in from the container manager are in mount_point_ignore()
|
D | discover-image.h | 97 return i->path && path_startswith(i->path, "/usr"); in IMAGE_IS_VENDOR()
|
D | smack-util.c | 134 if (!path_startswith(abspath, "/dev")) in smack_fix_fd()
|
D | pretty-print.c | 239 if (path_startswith(n, "systemd") && endswith(n, ".conf")) in guess_type()
|
D | uid-range.c | 215 if (r == -ENOENT && path_startswith(path, "/proc/") && proc_mounted() > 0) in uid_range_load_userns()
|
/systemd-251/src/analyze/ |
D | analyze-cat-config.c | 29 t = path_startswith(*arg, dir); in verb_cat_config()
|
/systemd-251/src/cryptsetup/ |
D | cryptsetup-generator.c | 254 if (path_startswith(udev_node, "/dev/")) { in print_dependencies() 478 if (path_startswith(u, "/dev/")) in create_disk() 810 uuid = path_startswith(device, "/dev/disk/by-uuid/"); in add_crypttab_devices()
|