Lines Matching full:subsystem
135 const std::string& subsystem) const {
137 if (name().find(subsystem) != std::string::npos) {
138 if (Match("/sys/class/" + subsystem + "/" + path_basename)) return true;
139 if (Match("/sys/bus/" + subsystem + "/devices/" + path_basename)) return true;
161 // parent directory with a 'subsystem' symlink that points to the platform bus.
173 if (Realpath(directory + "/subsystem", &subsystem_link_path) &&
192 const std::string& subsystem) const {
198 if (s.MatchWithSubsystem(path, subsystem)) s.SetPermissions(path);
377 FixupSysPermissions(uevent.path, uevent.subsystem);
387 if (uevent.subsystem == "block") {
394 } else if (StartsWith(uevent.subsystem, "usb")) {
395 if (uevent.subsystem == "usb") {
410 } else if (const auto subsystem =
411 std::find(subsystems_.cbegin(), subsystems_.cend(), uevent.subsystem);
412 subsystem != subsystems_.cend()) {
413 devpath = subsystem->ParseDevPath(uevent);
425 std::vector<Subsystem> subsystems, bool skip_restorecon)
435 std::vector<Subsystem>{}, false) {}