nvme_init_io-libnvme32
Initialize passthru command for a generic user i/o command
Usage
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 |
Overview
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.