NAME
nvme_init_cancel - Initialize passthru command for Cancel command
SYNOPSIS
void nvme_init_cancel (struct libnvme_passthru_cmd *cmd , __u32 nsid , __u16 sqid , __u16 cid , enum nvme_cancel_acode acode );
ARGUMENTS
- cmd
-
Passthru command to use
- nsid
-
Namespace identifier, or NVME_NSID_ALL
- sqid
-
Submission Queue Identifier (SQID) that the Cancel command is associated with
- cid
-
Command Identifier (CID) of the command to abort. Ignored if acode is NVME_CANCEL_ACODE_MULTIPLE_CMD.
- acode
-
Action Code (ACODE), see enum nvme_cancel_acode
DESCRIPTION
The Cancel command requests an abort for specified commands submitted on the same I/O Submission Queue to which the Cancel command is submitted. The number of commands eligible for a deferred abort and the number of commands aborted are returned in the CQE result, see enum nvme_cancel_cqe_dw0.
Initializes the passthru command buffer for the Cancel command.