Lines Matching refs:subsystem
165 const std::string& subsystem) const { in MatchWithSubsystem()
167 if (name().find(subsystem) != std::string::npos) { in MatchWithSubsystem()
168 if (Match("/sys/class/" + subsystem + "/" + path_basename)) return true; in MatchWithSubsystem()
169 if (Match("/sys/bus/" + subsystem + "/devices/" + path_basename)) return true; in MatchWithSubsystem()
223 const std::string& subsystem) const { in FixupSysPermissions()
229 if (s.MatchWithSubsystem(path, subsystem)) s.SetPermissions(path); in FixupSysPermissions()
473 FixupSysPermissions(uevent.path, uevent.subsystem); in HandleUevent()
483 if (uevent.subsystem == "block") { in HandleUevent()
490 } else if (const auto subsystem = in HandleUevent() local
491 std::find(subsystems_.cbegin(), subsystems_.cend(), uevent.subsystem); in HandleUevent()
492 subsystem != subsystems_.cend()) { in HandleUevent()
493 devpath = subsystem->ParseDevPath(uevent); in HandleUevent()
494 } else if (uevent.subsystem == "usb") { in HandleUevent()
505 } else if (StartsWith(uevent.subsystem, "usb")) { in HandleUevent()
508 } else if (uevent.subsystem == "misc" && StartsWith(uevent.device_name, "dm-user/")) { in HandleUevent()