table of contents
other versions
- experimental 3.2-1
| 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¶
- cmd
- Passthru command to use
- opcode
- Opcode to execute
- nsid
- Namespace ID
- slba
- Starting logical block
- data
- Pointer to user address of the data buffer
- data_len
- Length of user buffer, data, in bytes
- metadata
- Pointer to user address of the metadata buffer
- metadata_len
- 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 |