Lines Matching refs:syspath
61 std::string ResolveSymLink(const std::string &syspath)
66 ssize_t len = readlink(syspath.c_str(), linkTarget, sizeof(linkTarget));
68 return syspath;
77 std::string_view base = syspath;
80 return syspath;
87 std::optional<std::string> GetLinkValue(const std::string &slink, const std::string &syspath)
89 auto path = syspath + "/" + slink;
216 return syspath;
299 syspath = std::move(newSyspath);
301 AddProperty("DEVPATH", syspath.substr(0, "/sys"sv.size()));
303 auto pos = syspath.rfind('/');
307 sysname = syspath.substr(pos + 1);
337 auto filename = syspath + "/uevent";
582 auto res = GetLinkValue("subsystem", syspath);
601 std::string syspath;
644 udev_device *udev_device_new_from_syspath(udev *udev, const char *syspath)
646 if (udev == nullptr || syspath == nullptr) {
650 return udev_device::NewFromSyspath(syspath);