Searched refs:_syspath (Results 1 - 2 of 2) sorted by relevance
/systemd/src/libsystemd/sd-device/ |
H A D | device-internal.h | 115 int device_set_syspath(sd_device *device, const char *_syspath, bool verify);
|
H A D | sd-device.c | 150 int device_set_syspath(sd_device *device, const char *_syspath, bool verify) { argument 156 assert(_syspath); 159 if (!path_startswith(_syspath, "/sys/")) { 160 log_debug("sd-device: syspath '%s' is not a subdirectory of /sys", _syspath); 165 r = readlink_and_canonicalize(_syspath, &syspath); 171 syspath = canonicalize_file_name(_syspath); 177 return log_debug_errno(errno, "sd-device: could not canonicalize '%s': %m", _syspath); 180 log_debug_errno(r, "sd-device: could not get target of '%s': %m", _syspath); 204 syspath = strdup(_syspath);
|
Completed in 29 milliseconds