nvme_init_copy(9) libnvme API manual nvme_init_copy(9)

nvme_init_copy - Initialize passthru command for Copy command

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 );

Passthru command to use
Namespace identifier
Start destination LBA
Number of ranges (1-based, 0-based in command)
Descriptor format
Protection information field for read
Protection information field for write
Command Extension Type
Directive Type
Storage Tag Check Write
Storage Tag Check Read
Force unit access
Limited retry
Command Extension Value
Directive specific value
Range description buffer

Initializes the passthru command buffer for the Copy command by calculating the data length and calling the generic I/O initializer.

nvme_init_copy October 2026