MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / GetGenericPCIDevices

Function GetGenericPCIDevices

Kernel/src/arch/x86_64/pci.cpp:136–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 }
135
136 List<PCIDevice*> GetGenericPCIDevices(uint8_t classCode, uint8_t subclass){
137 List<PCIDevice*> foundDevices;
138 for(PCIDevice& dev : *devices){
139 if(dev.classCode == classCode && dev.subclass == subclass){
140 foundDevices.add_back(&dev);
141 }
142 }
143
144 return foundDevices;
145 }
146
147 int AddDevice(int bus, int slot, int func){
148 PCIDevice device;

Callers 2

InitializeFunction · 0.85
InitializeMethod · 0.85

Calls 1

add_backMethod · 0.45

Tested by

no test coverage detected