Lines Matching refs:uevent
187 /* all 'devices' require an 'uevent' file */
188 path = strjoina(syspath, "/uevent");
195 log_debug("sd-device: %s does not have an uevent file: %m", syspath);
496 _cleanup_free_ char *uevent = NULL;
522 path = strjoina(syspath, "/uevent");
524 r = read_full_file(path, &uevent, &uevent_len);
526 /* empty uevent files may be write-only */
529 /* some devices may not have uevent files, see set_syspath() */
532 log_debug_errno(r, "sd-device: failed to read uevent file '%s': %m", path);
539 if (!strchr(NEWLINE, uevent[i])) {
540 key = &uevent[i];
547 if (uevent[i] == '=') {
548 uevent[i] = '\0';
551 } else if (strchr(NEWLINE, uevent[i])) {
552 uevent[i] = '\0';
553 log_debug("sd-device: ignoring invalid uevent line '%s'", key);
560 value = &uevent[i];
566 if (strchr(NEWLINE, uevent[i])) {
567 uevent[i] = '\0';
571 log_debug_errno(r, "sd-device: failed to handle uevent entry '%s=%s': %m", key, value);
578 assert_not_reached("invalid state when parsing uevent file");