logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

nvme_admin_passthru64 - Submit a 64-bit nvme passthrough command

Arguments

fd File descriptor of nvme device opcode The nvme io command to send flags NVMe command flags (not used) rsvd Reserved for future use nsid Namespace identifier cdw2 Command dword 2 cdw3 Command dword 3 cdw10 Command dword 10 cdw11 Command dword 11 cdw12 Command dword 12 cdw13 Command dword 13 cdw14 Command dword 14 cdw15 Command dword 15 data_len Length of the data transferred in this command in bytes data Pointer to user address of the data buffer metadata_len Length of metadata transferred in this command metadata Pointer to user address of the metadata buffer timeout_ms How long the kernel waits for the command to complete result Optional field to return the result from the CQE dword 0

Description

Parameterized form of nvme_submit_admin_passthru64. This sets up and submits a structnvme_passthru_cmd64. Known values for opcode are defined in enumnvme_admin_opcode.

Name

nvme_admin_passthru64 - Submit a 64-bit nvme passthrough command

Return

The nvme command status if a response was received (see enumnvme_status_field) or -1 with errno set otherwise. August 2025 nvme_admin_passthru64 nvme_admin_passthru64(2)

Synopsis

intnvme_admin_passthru64(intfd,__u8opcode,__u8flags,__u16rsvd,__u32nsid,__u32cdw2,__u32cdw3,__u32cdw10,__u32cdw11,__u32cdw12,__u32cdw13,__u32cdw14,__u32cdw15,__u32data_len,void*data,__u32metadata_len,void*metadata,__u32timeout_ms,__u64*result);

See Also