NAME
nvme_init_fw_download - Initialize passthru command to download part or all of a firmware image to the controller
SYNOPSIS
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
DESCRIPTION
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.