#[repr(C)]pub struct nvme_passthru_cmd {Show 18 fields
pub opcode: __u8,
pub flags: __u8,
pub rsvd1: __u16,
pub nsid: __u32,
pub cdw2: __u32,
pub cdw3: __u32,
pub metadata: __u64,
pub addr: __u64,
pub metadata_len: __u32,
pub data_len: __u32,
pub cdw10: __u32,
pub cdw11: __u32,
pub cdw12: __u32,
pub cdw13: __u32,
pub cdw14: __u32,
pub cdw15: __u32,
pub timeout_ms: __u32,
pub result: __u32,
}Expand description
struct nvme_passthru_cmd - nvme passthrough command structure @opcode: Operation code, see &enum nvme_io_opcodes and &enum nvme_admin_opcodes @flags: Not supported: intended for command flags (eg: SGL, FUSE) @rsvd1: Reserved for future use @nsid: Namespace Identifier, or Fabrics type @cdw2: Command Dword 2 (no spec defined use) @cdw3: Command Dword 3 (no spec defined use) @metadata: User space address to metadata buffer (NULL if not used) @addr: User space address to data buffer (NULL if not used) @metadata_len: Metadata buffer transfer length @data_len: Data buffer transfer length @cdw10: Command Dword 10 (command specific) @cdw11: Command Dword 11 (command specific) @cdw12: Command Dword 12 (command specific) @cdw13: Command Dword 13 (command specific) @cdw14: Command Dword 14 (command specific) @cdw15: Command Dword 15 (command specific) @timeout_ms: If non-zero, overrides system default timeout in milliseconds @result: Set on completion to the command’s CQE DWORD 0 controller response
Fields§
§opcode: __u8§flags: __u8§rsvd1: __u16§nsid: __u32§cdw2: __u32§cdw3: __u32§metadata: __u64§addr: __u64§metadata_len: __u32§data_len: __u32§cdw10: __u32§cdw11: __u32§cdw12: __u32§cdw13: __u32§cdw14: __u32§cdw15: __u32§timeout_ms: __u32§result: __u32Trait Implementations§
Source§impl Clone for nvme_passthru_cmd
impl Clone for nvme_passthru_cmd
Source§fn clone(&self) -> nvme_passthru_cmd
fn clone(&self) -> nvme_passthru_cmd
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more