libnvme(2)
π libnvme β struct nvme_copy_range_f3 π
okay so bestie, welcome to the libnvme API Manual π β this is a page from the libnvme(2) crew, and today's main character is a little struct called nvme_copy_range_f3. it's giving Copy β Source Range Entries Descriptor Format 3h β¨ no cap, that's literally what it is.
πΈ NAME πΈ
struct nvme_copy_range_f3 β Copy β Source Range Entries Descriptor Format 3h π
like. it's the Format 3h flavour of a copy source range descriptor. that's the whole vibe. periodt.
β¨ SYNOPSIS β¨
struct nvme_copy_range_f3 {
__le32 snsid;
__u8 rsvd4[4];
__le64 slba;
__le16 nlb;
__u8 rsvd18[4];
__le16 sopt;
__u8 rsvd24[2];
__u8 elbt[10];
__le16 elbat;
__le16 elbatm;
};
look at her. π¦ ten fields, all laid out exactly like that, don't you dare reorder them. the reserved bits are there for a reason even if they're just sitting pretty doing nothing. iykyk.
π Members π
bullet by bullet, field by field, let's go:
snsidβ Source Namespace Identifier π the nsid of the namespace the copy is reading from, bestie.rsvd4β Reserved π exactly what it says. hands off.slbaβ Starting LBA β where the source range kicks off on the drive.nlbβ Number of Logical Blocks π₯ how many logical blocks we're talking about.rsvd18β Reserved π again. reserved. stay out of it.soptβ Source Options π the options for the source side of the copy.rsvd24β Reserved π third reserved field, still reserved, still not yours.elbtβ Expected Initial Logical Block Reference Tag / Expected Logical Block Storage Tag πΈ yes both of those things, that's the full description, i'm not paraphrasing it away.elbatβ Expected Logical Block Application Tag π«Ά the application tag you expect.elbatmβ Expected Logical Block Application Tag Mask π§ and here's the mask that goes with it.
reminder bestie: those three rsvd* fields are Reserved. do not touch, do not write, do not make it weird. π«Ά
and that's the whole page, angel. π this was struct nvme_copy_range_f3 from the libnvme(2) API Manual, July 2026 edition β mwah, slay, go forth and copy ranges responsibly. πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms