NAME
nvme_init_copy - Initialize passthru command for Copy command
SYNOPSIS
void nvme_init_copy (struct libnvme_passthru_cmd *cmd , __u32 nsid , __u64 sdlba , __u16 nr , __u8 desfmt , __u8 prinfor , __u8 prinfow , __u8 cetype , __u8 dtype , bool stcw , bool stcr , bool fua , bool lr , __u16 cev , __u16 dspec , void *cpydsc );
ARGUMENTS
- cmd
-
Passthru command to use
- nsid
-
Namespace identifier
- sdlba
-
Start destination LBA
- nr
-
Number of ranges (1-based, 0-based in command)
- desfmt
-
Descriptor format
- prinfor
-
Protection information field for read
- prinfow
-
Protection information field for write
- cetype
-
Command Extension Type
- dtype
-
Directive Type
- stcw
-
Storage Tag Check Write
- stcr
-
Storage Tag Check Read
- fua
-
Force unit access
- lr
-
Limited retry
- cev
-
Command Extension Value
- dspec
-
Directive specific value
- cpydsc
-
Range description buffer
DESCRIPTION
Initializes the passthru command buffer for the Copy command by calculating the data length and calling the generic I/O initializer.