Home
last modified time | relevance | path

Searched refs:path_startswith (Results 1 – 25 of 72) sorted by relevance

123

/systemd-251/src/udev/
Dudevadm-info.c234 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()
Dudevadm-util.c14 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()
Dudevadm-wait.c135 if (!path_startswith(*p, "/sys")) in device_monitor_handler()
163 if (!path_startswith(*p, "/dev")) in device_monitor_handler()
/systemd-251/src/login/
Dsysfs-show.c48 !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()
Dlogind-utmp.c54 p = path_startswith(tty, "/dev/"); in logind_wall_tty_filter()
/systemd-251/src/sysctl/
Dsysctl.c60 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/
Ddevice-util.c52 if (path_startswith(syspath, syspath_parent)) in device_match_parent()
59 if (path_startswith(syspath, syspath_parent)) in device_match_parent()
Dsd-device.c149 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/
Dveritysetup-generator.c397 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/
Ddevnum-util.c113 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()
Dpath-util.h61 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()
Dchase-symlinks.c194 todo = path_startswith(buffer, root); in chase_symlinks()
245 path_startswith(done, root) && in chase_symlinks()
246 !path_startswith(parent, root)) in chase_symlinks()
Dconf-files.c215 p1 = path_startswith((*strv)[i], rdir); in conf_files_insert()
221 p2 = path_startswith(path, *dir); in conf_files_insert()
Dterminal-util.c529 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/
Dgetty-generator.c132 tty = path_startswith(tty, "/dev/") ?: tty; in run_container()
135 tty = path_startswith(tty, "pts/"); in run_container()
/systemd-251/src/cgls/
Dcgls.c239 } else if (path_startswith(*name, "/sys/fs/cgroup")) { in run()
293 if (path_startswith(cwd, "/sys/fs/cgroup")) { in run()
/systemd-251/src/shared/
Ddiscover-image.c243 (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()
Dmount-util.c117 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()
Dmount-setup.c125 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()
Ddiscover-image.h97 return i->path && path_startswith(i->path, "/usr"); in IMAGE_IS_VENDOR()
Dsmack-util.c134 if (!path_startswith(abspath, "/dev")) in smack_fix_fd()
Dpretty-print.c239 if (path_startswith(n, "systemd") && endswith(n, ".conf")) in guess_type()
Duid-range.c215 if (r == -ENOENT && path_startswith(path, "/proc/") && proc_mounted() > 0) in uid_range_load_userns()
/systemd-251/src/analyze/
Danalyze-cat-config.c29 t = path_startswith(*arg, dir); in verb_cat_config()
/systemd-251/src/cryptsetup/
Dcryptsetup-generator.c254 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()

123