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

Method insertDevice

src/Library/DeviceManagerBase.cpp:75–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 }
74
75 void DeviceManagerBase::insertDevice(std::shared_ptr<DeviceBase> device)
76 {
77 DeviceManager::insertDevice(std::static_pointer_cast<Device>(device));
78 std::unique_lock<std::mutex> device_lock(device->refDeviceMutex());
79 learnSysfsPath(device->getSysPath(), device->getID());
80 }
81
82 std::shared_ptr<Device> DeviceManagerBase::removeDevice(const std::string& syspath)
83 {

Callers

nothing calls this directly

Calls 1

getIDMethod · 0.45

Tested by

no test coverage detected