libnvme(2)

✨ libnvme β€” struct nvme_copy_range_f2 ✨

okay bestie, so we're diving into the libnvme API manual (that's the libnvme(2) section of the manual, for the record πŸ‘‘) and today's main character is the Copy β€” Source Range Entries Descriptor, Format 2h. say it with me: format two-h. πŸ’…


πŸ’– NAME πŸ’–

struct nvme_copy_range_f2 β€” the Copy - Source Range Entries Descriptor Format 2h. it's giving "tell me where to copy from and what I should expect when I get there" πŸ¦‹


🌸 SYNOPSIS 🌸

struct nvme_copy_range_f2 {
    __le32 snsid;
    __u8 rsvd4[4];
    __le64 slba;
    __le16 nlb;
    __u8 rsvd18[4];
    __le16 sopt;
    __le32 eilbrt;
    __le16 elbat;
    __le16 elbatm;
 };

look at her. absolutely iconic struct layout, no cap. πŸŽ€


🧚 Members 🧚

  • snsid β€” Source Namespace Identifier. literally which namespace we're pulling from, periodt. πŸ’œ
  • rsvd4 β€” Reserved. she's just sitting there taking up space, respectfully. πŸ™ˆ
  • slba β€” Starting LBA. the beginning of the block address range, bestie. this is where the vibe check starts. ⭐
  • nlb β€” Number of Logical Blocks. how many blocks we're moving, fr fr. πŸ”₯
  • rsvd18 β€” Reserved. another little gap, she's reserved for a reason (iykyk). πŸ’–
  • sopt β€” Source Options. the options for the source side of things. 🌈
  • eilbrt β€” Expected Initial Logical Block Reference Tag / Expected Logical Block Storage Tag. it's giving "the tag I expect to see", both flavors: reference tag and storage tag. very double-duty of her. πŸ‘‘
  • elbat β€” Expected Logical Block Application Tag. the application tag we're expecting. ✨
  • elbatm β€” Expected Logical Block Application Tag Mask. and here's the mask that goes with it, so we know which bits actually matter. πŸ’…

ok that's the whole struct, no skips, no summarizing, every single member got her moment 🫢 always copy responsibly, bestie πŸ’–

that was the libnvme API manual, struct nvme_copy_range_f2 page, dated July 2026 β€” mwah, go forth and copy your ranges πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from