MCPcopy Create free account
hub / github.com/USBGuard/usbguard / processDeviceRemoval

Method processDeviceRemoval

src/Library/DeviceManagerBase.cpp:342–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340 }
341
342 void DeviceManagerBase::processDeviceRemoval(const std::string& sysfs_devpath)
343 {
344 USBGUARD_LOG(Trace) << "sysfs_devpath=" << sysfs_devpath;
345
346 try {
347 std::shared_ptr<Device> device = removeDevice(sysfs_devpath);
348 DeviceEvent(DeviceManager::EventType::Remove, device);
349 }
350 catch (...) {
351 /* Ignore for now */
352 USBGUARD_LOG(Debug) << "Removal of an unknown device ignored.";
353 return;
354 }
355 }
356
357 bool DeviceManagerBase::isPresentSysfsPath(const std::string& sysfs_path) const
358 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected