Lalla Soft

SQE Class

Properties

Name Description
int qid
Queue ID, It is updated when SQE is submitted.
int slot
The slot number in the queue, It is updated when SQE is updated.
DATAMEM datamem
Data memory buffer
UInt32 opc
Opcode(OPC), CDW0-07:00
UInt32 fuse
Fused Operation(FUSE), CDW0-09:08
UInt32 psdt
PRP or SGL for Data Transfer (PSDT), CDW0-15:14
UInt32 cid
Command Identifier (CID), CDW0-31:16
UInt32 nsid
Namespace Identifier (NSID), Bytes 07:04
UInt32 rsvdl
Reserved lower, Bytes 08:11
UInt32 rsvdh
Reserved higher, Bytes 12:15
UInt32 mptrl
Metadata Pointer (MPTR) Lower, Byte 16:19
UInt32 mptrh
Metadata Pointer (MPTR) Higher, Byte 20:23
UInt32 prp1l
PRP Entry 1 (PRP1) Lower, Bytes 24:27
UInt32 prp1h
PRP Entry 1 (PRP1) Higher, Bytes 28:31
UInt32 prp2l
PRP Entry 2 (PRP2) Lower, Bytes 32:35
UInt32 prp2h
PRP Entry 2 (PRP2) Higher, Bytes 36:39
UInt32 cdw10
Command Dword 10 (CDW10), Bytes 43:40
UInt32 cdw11
Command Dword 11 (CDW11), Bytes 47:44
UInt32 cdw12
Command Dword 12 (CDW12), Bytes 51:48
UInt32 cdw13
Command Dword 13 (CDW13), Bytes 55:52
UInt32 cdw14
Command Dword 14 (CDW14), Bytes 59:56
UInt32 cdw15
Command Dword 15 (CDW15), Bytes 63:60

Methods

Name Description
void Sqe_GetEntry(int qid, int slot)
Copy from SQE specified by qid and slot
string Sqe_Dump()
Print out SQE
double Sqe_SubmitTailSync(int qid, double timeout)

Submit the SQE thru the queue specified qid.And return the elapsed time
qid : The queue ID to submit.
timeout : Value of timeout in second