Scroll to navigation

nvme_init_io(2) libnvme API manual nvme_init_io(2)

NAME

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

SYNOPSIS

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 );

ARGUMENTS

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

DESCRIPTION

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

NOTE

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