nvme_init_copy(9)

πŸ“¦ version 3.2, in arch rolling

hey bestie πŸ’• welcome to the libnvme API manual page for nvme_init_copy(9) β€” yes, the function itself, and yes, she's iconic. this is the whole page, no skipped bits, no cap 🫢


✨ NAME ✨

nvme_init_copy β€” initialize the passthru command for the Copy command. that's the name, that's the assignment, periodt πŸ’…

🌸 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 β€” the passthru command to use, bestie 🫢
  • nsid β€” namespace identifier ✨
  • sdlba β€” start destination LBA 🎯
  • nr β€” number of ranges β€” it's 1-based here, but 0-based in the command, iykyk πŸ‘€
  • 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 πŸ’…

okay so this function initializes the passthru command buffer for the Copy command. the way it does that? by calculating the data length and calling the generic I/O initializer. literally that's the vibe, and it ate πŸ’–


that's the whole page, bestie 🫢 β€” with love from the October 2026 edition, source nvme_init_copy, manual nvme_init_copy(9). mwah πŸ’‹

πŸ“¦ where this page comes from