| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected