MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / createSysBusUsb

Function createSysBusUsb

source/kernel/sys/sysbususb.cpp:55–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55std::shared_ptr<FsNode> createSysBusUsb(const std::shared_ptr<FsNode> busNode) {
56 std::shared_ptr<FsNode> usbNode = busNode->getChildByName(B("usb"));
57 if (!usbNode) {
58 usbNode = Fs::addFileNode(B("/sys/bus/usb"), B(""), B(""), true, busNode);
59 }
60 sysAddUsbDrivers(usbNode);
61 return usbNode;
62}

Callers 1

createSysBusFunction · 0.85

Calls 3

BFunction · 0.85
sysAddUsbDriversFunction · 0.85
getChildByNameMethod · 0.80

Tested by

no test coverage detected