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

Method isPresentSysfsPath

src/Library/DeviceManagerBase.cpp:357–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355 }
356
357 bool DeviceManagerBase::isPresentSysfsPath(const std::string& sysfs_path) const
358 {
359 uint32_t id = 0;
360
361 if (knownSysfsPath(sysfs_path, &id)) {
362 return 0 == id;
363 }
364
365 return false;
366 }
367
368 bool DeviceManagerBase::knownSysfsPath(const std::string& sysfs_path, uint32_t* id_ptr) const
369 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected