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

Function FindMainAdapter

Kernel/src/net/networkadapter.cpp:18–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 }
17
18 void FindMainAdapter(){
19 for(unsigned i = 0; i < adapters.get_length(); i++){
20 if(adapters[i]->GetLink() == LinkUp){
21 mainAdapter = adapters[i];
22 return;
23 }
24 }
25 }
26
27 NetworkAdapter::NetworkAdapter() : Device(TypeNetworkAdapterDevice) {
28 flags = FS_NODE_CHARDEVICE;

Callers 1

UpdateLinkMethod · 0.85

Calls 2

GetLinkMethod · 0.80
get_lengthMethod · 0.45

Tested by

no test coverage detected