Lines Matching refs:uevent
106 const Uevent& uevent) const { in RunExternalHandler()
127 setenv("FIRMWARE", uevent.firmware.c_str(), 1); in RunExternalHandler()
128 setenv("DEVPATH", uevent.path.c_str(), 1); in RunExternalHandler()
192 std::string FirmwareHandler::GetFirmwarePath(const Uevent& uevent) const { in GetFirmwarePath()
194 if (external_handler.match(uevent.path)) { in GetFirmwarePath()
196 << "' for devpath: '" << uevent.path << "' firmware: '" << uevent.firmware in GetFirmwarePath()
200 RunExternalHandler(external_handler.handler_path, external_handler.uid, uevent); in GetFirmwarePath()
204 return uevent.firmware; in GetFirmwarePath()
210 return uevent.firmware; in GetFirmwarePath()
212 LOG(INFO) << "Loading firmware '" << *result << "' in place of '" << uevent.firmware in GetFirmwarePath()
217 LOG(INFO) << "firmware: loading '" << uevent.firmware << "' for '" << uevent.path << "'"; in GetFirmwarePath()
218 return uevent.firmware; in GetFirmwarePath()
308 void FirmwareHandler::HandleUevent(const Uevent& uevent) { in HandleUevent() argument
309 if (uevent.subsystem != "firmware" || uevent.action != "add") return; in HandleUevent()
314 PLOG(ERROR) << "could not fork to process firmware event for " << uevent.firmware; in HandleUevent()
318 auto firmware = GetFirmwarePath(uevent); in HandleUevent()
319 ProcessFirmwareEvent("/sys" + uevent.path, firmware); in HandleUevent()
320 LOG(INFO) << "loading " << uevent.path << " took " << t; in HandleUevent()