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

Method NVMeQueue

Kernel/src/storage/nvme.cpp:20–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;
22
23 completionBase = cqBase;
24 submissionBase = sqBase;
25
26 completionQueue = reinterpret_cast<NVMeCompletion*>(cq);
27 submissionQueue = reinterpret_cast<NVMeCommand*>(cq);
28
29 completionDB = cqDB;
30 submissionDB = sqDB;
31
32 cQueueSize = csz;
33 cqCount = csz / sizeof(NVMeCompletion);
34 sQueueSize = ssz;
35 sqCount = ssz / sizeof(NVMeCommand);
36 }
37
38 long NVMeQueue::Consume(NVMeCommand& cmd){
39 return 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected