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

Method Submit

Kernel/src/storage/nvme.cpp:42–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 }
41
42 void NVMeQueue::Submit(NVMeCommand& cmd){
43 acquireLock(&queueLock);
44 cmd.commandID = nextCommandID++;
45
46 submissionQueue[sqTail] = cmd;
47
48 sqTail++;
49 if(sqTail >= sqCount){
50 sqTail = 0;
51 }
52
53 *submissionDB = sqTail;
54 releaseLock(&queueLock);
55 }
56
57 void NVMeQueue::SubmitWait(NVMeCommand& cmd, NVMeCompletion& complet){
58 acquireLock(&queueLock);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected