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

Function driver_add

TactilityKernel/source/driver.cpp:61–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61error_t driver_add(Driver* driver) {
62 LOG_I(TAG, "add %s", driver->name);
63 ledger.lock();
64 ledger.drivers.push_back(driver);
65 ledger.unlock();
66 return ERROR_NONE;
67}
68
69error_t driver_remove(Driver* driver) {
70 LOG_I(TAG, "remove %s", driver->name);

Callers 2

DriverTest.cppFile · 0.85
driver_construct_addFunction · 0.85

Calls 2

lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected