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

Function device_remove_child

TactilityKernel/source/device.cpp:102–109  ·  view source on GitHub ↗

Remove a child from the list of children */

Source from the content-addressed store, hash-verified

100
101/** Remove a child from the list of children */
102static void device_remove_child(struct Device* device, struct Device* child) {
103 device_lock(device);
104 const auto iterator = std::ranges::find(device->internal->children, child);
105 if (iterator != device->internal->children.end()) {
106 device->internal->children.erase(iterator);
107 }
108 device_unlock(device);
109}
110
111error_t device_add(Device* device) {
112 LOG_D(TAG, "add %s", device->name);

Callers 1

device_removeFunction · 0.85

Calls 2

device_lockFunction · 0.85
device_unlockFunction · 0.85

Tested by

no test coverage detected