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

Function FindGenericDevice

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

Source from the content-addressed store, hash-verified

102 }
103
104 bool FindGenericDevice(uint16_t classCode, uint16_t subclass){
105 for(unsigned i = 0; i < devices->get_length(); i++){
106 if(devices->get_at(i).classCode == classCode && devices->get_at(i).subclass == subclass){
107 return true;
108 }
109 }
110
111 return false;
112 }
113
114 PCIDevice& GetPCIDevice(uint16_t deviceID, uint16_t vendorID){
115 for(PCIDevice& dev : *devices){

Callers 3

InitFunction · 0.85
InitFunction · 0.85
InitializeMethod · 0.85

Calls 2

get_atMethod · 0.80
get_lengthMethod · 0.45

Tested by

no test coverage detected