Lines Matching refs:subsystem
147 const char* path, const char* subsystem) { in match_subsystem() argument
148 if (!pattern || !subsystem || strstr(dp->name, subsystem) == NULL) { in match_subsystem()
152 std::string subsys_path = android::base::StringPrintf(pattern, subsystem, basename(path)); in match_subsystem()
156 static void fixup_sys_perms(const char* upath, const char* subsystem) { in fixup_sys_perms() argument
164 if (match_subsystem(dp, SYSFS_PREFIX "/class/%s/%s", path.c_str(), subsystem)) { in fixup_sys_perms()
166 … } else if (match_subsystem(dp, SYSFS_PREFIX "/bus/%s/devices/%s", path.c_str(), subsystem)) { in fixup_sys_perms()
425 uevent->subsystem = ""; in parse_event()
443 uevent->subsystem = msg; in parse_event()
471 uevent->action, uevent->path, uevent->subsystem, in parse_event()
513 if (asprintf(&links[link_num], "/dev/usb/%s%.*s", uevent->subsystem, width, parent) > 0) in get_character_device_symlinks()
732 struct ueventd_subsystem *subsystem = in handle_generic_device_event() local
733 ueventd_subsystem_find_by_name(uevent->subsystem); in handle_generic_device_event()
735 if (subsystem) { in handle_generic_device_event()
738 switch (subsystem->devname_src) { in handle_generic_device_event()
748 … LOG(ERROR) << uevent->subsystem << " subsystem's devpath option is not set; ignoring event"; in handle_generic_device_event()
752 if (!assemble_devpath(devpath, subsystem->dirname, devname)) in handle_generic_device_event()
755 } else if (!strncmp(uevent->subsystem, "usb", 3)) { in handle_generic_device_event()
756 if (!strcmp(uevent->subsystem, "usb")) { in handle_generic_device_event()
780 } else if (!strncmp(uevent->subsystem, "graphics", 8)) { in handle_generic_device_event()
783 } else if (!strncmp(uevent->subsystem, "drm", 3)) { in handle_generic_device_event()
786 } else if (!strncmp(uevent->subsystem, "oncrpc", 6)) { in handle_generic_device_event()
789 } else if (!strncmp(uevent->subsystem, "adsp", 4)) { in handle_generic_device_event()
792 } else if (!strncmp(uevent->subsystem, "msm_camera", 10)) { in handle_generic_device_event()
795 } else if(!strncmp(uevent->subsystem, "input", 5)) { in handle_generic_device_event()
798 } else if(!strncmp(uevent->subsystem, "mtd", 3)) { in handle_generic_device_event()
801 } else if(!strncmp(uevent->subsystem, "sound", 5)) { in handle_generic_device_event()
804 } else if(!strncmp(uevent->subsystem, "misc", 4) && !strncmp(name, "log_", 4)) { in handle_generic_device_event()
823 fixup_sys_perms(uevent->path, uevent->subsystem); in handle_device_event()
825 if (!strncmp(uevent->subsystem, "block", 5)) { in handle_device_event()
827 } else if (!strncmp(uevent->subsystem, "platform", 8)) { in handle_device_event()
902 if (strcmp(uevent->subsystem, "firmware")) return; in handle_firmware_event()