nvme_init_fw_download-libnvme32
Initialize passthru command to download part or all of a firmware image to the controller
Usage
int nvme_init_fw_download (struct libnvme_passthru_cmd *cmd , void *data , __u32 len , __u32 offset );
Arguments
cmd
|
Passthru command to use |
|---|---|
data
|
Userspace address of the firmware data buffer |
len
|
Length of data in this command in bytes |
offset
|
Offset in the firmware data |
Overview
Initializes the passthru command buffer for the Firmware Image Download command.
Note
Caller must ensure data_len and offset are DWord-aligned (0x4).
Return
0 on success, negative error code otherwise.