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

Function Initialize

Kernel/src/storage/nvme.cpp:13–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 Vector<Controller*> nvmControllers;
12
13 void Initialize(){
14 List<PCIDevice*> devices = PCI::GetGenericPCIDevices(PCI_CLASS_STORAGE, PCI_SUBCLASS_NVM);
15 for(PCIDevice* dev : devices){
16 nvmControllers.add_back(new Controller(dev));
17 }
18 }
19
20 NVMeQueue::NVMeQueue(uint16_t qid, uintptr_t cqBase, uintptr_t sqBase, void* cq, void* sq, uint32_t* cqDB, uint32_t* sqDB, uint16_t csz, uint16_t ssz){
21 queueID = qid;

Callers

nothing calls this directly

Calls 2

GetGenericPCIDevicesFunction · 0.85
add_backMethod · 0.45

Tested by

no test coverage detected