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