OS Manuals

nvme_init_io-libnvme3(2)

nvme_init_io - Initialize passthru command for a generic user I/O command

nvme_init_io(9) libnvme API manual nvme_init_io(9)

nvme_init_io - Initialize passthru command for a generic user I/O command

void nvme_init_io (struct libnvme_passthru_cmd *cmd , __u8 opcode , __u32 nsid , __u64 slba , void *data , __u32 data_len , void *metadata , __u32 metadata_len );

Passthru command to use
Opcode to execute
Namespace ID
Starting logical block
Pointer to user address of the data buffer
Length of user buffer, data, in bytes
Pointer to user address of the metadata buffer
Length of user buffer, metadata, in bytes

Initializes the passthru command buffer for a generic NVM I/O command.

If elbas is true, the caller must ensure the definition/logic for nvme_init_set_var_size_tags is available and that the return value from that function is checked for error.

nvme_init_io October 2026

nvme-cli 3.2-r0 · os · ingested 2026-10-31