-
struct libnvme_passthru_cmd¶
nvme passthrough command structure
Definition
struct libnvme_passthru_cmd {
__u8 opcode;
__u8 flags;
__u16 rsvd1;
__u32 nsid;
__u32 cdw2;
__u32 cdw3;
__u64 metadata;
__u64 addr;
__u32 metadata_len;
__u32 data_len;
__u32 cdw10;
__u32 cdw11;
__u32 cdw12;
__u32 cdw13;
__u32 cdw14;
__u32 cdw15;
__u32 timeout_ms;
__u32 rsvd2;
__u64 result;
};
Members
opcodeOperation code, see
enum libnvme_io_opcodesandenum libnvme_admin_opcodesflagsSupported only for NVMe-MI
rsvd1Reserved for future use
nsidNamespace Identifier, or Fabrics type
cdw2Command Dword 2 (no spec defined use)
cdw3Command Dword 3 (no spec defined use)
metadataUser space address to metadata buffer (NULL if not used)
addrUser space address to data buffer (NULL if not used)
metadata_lenMetadata buffer transfer length
data_lenData buffer transfer length
cdw10Command Dword 10 (command specific)
cdw11Command Dword 11 (command specific)
cdw12Command Dword 12 (command specific)
cdw13Command Dword 13 (command specific)
cdw14Command Dword 14 (command specific)
cdw15Command Dword 15 (command specific)
timeout_msIf non-zero, overrides system default timeout in milliseconds
rsvd2Reserved for future use (and fills an implicit struct pad
resultSet on completion to the command’s CQE DWORD 0-1 controller response
-
struct libnvme_uring_cmd¶
nvme uring command structure
Definition
struct libnvme_uring_cmd {
__u8 opcode;
__u8 flags;
__u16 rsvd1;
__u32 nsid;
__u32 cdw2;
__u32 cdw3;
__u64 metadata;
__u64 addr;
__u32 metadata_len;
__u32 data_len;
__u32 cdw10;
__u32 cdw11;
__u32 cdw12;
__u32 cdw13;
__u32 cdw14;
__u32 cdw15;
__u32 timeout_ms;
__u32 rsvd2;
};
Members
opcodeOperation code, see
enum libnvme_io_opcodesandenum libnvme_admin_opcodesflagsNot supported: intended for command flags (eg: SGL, FUSE)
rsvd1Reserved for future use
nsidNamespace Identifier, or Fabrics type
cdw2Command Dword 2 (no spec defined use)
cdw3Command Dword 3 (no spec defined use)
metadataUser space address to metadata buffer (NULL if not used)
addrUser space address to data buffer (NULL if not used)
metadata_lenMetadata buffer transfer length
data_lenData buffer transfer length
cdw10Command Dword 10 (command specific)
cdw11Command Dword 11 (command specific)
cdw12Command Dword 12 (command specific)
cdw13Command Dword 13 (command specific)
cdw14Command Dword 14 (command specific)
cdw15Command Dword 15 (command specific)
timeout_msIf non-zero, overrides system default timeout in milliseconds
rsvd2Reserved for future use (and fills an implicit struct pad