MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / driver_find_compatible

Function driver_find_compatible

TactilityKernel/source/driver.cpp:112–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112Driver* driver_find_compatible(const char* compatible) {
113 ledger.lock();
114 Driver* result = nullptr;
115 for (auto* driver : ledger.drivers) {
116 if (driver_is_compatible(driver, compatible)) {
117 result = driver;
118 break;
119 }
120 }
121 ledger.unlock();
122 return result;
123}
124
125error_t driver_bind(Driver* driver, Device* device) {
126 error_t error = ERROR_NONE;

Callers 3

DriverTest.cppFile · 0.85
device_construct_addFunction · 0.85
createKernelDeviceHolderFunction · 0.85

Calls 3

driver_is_compatibleFunction · 0.85
lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected