STRUCT CXL_REGION_LABEL(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’– struct cxl_region_label(9) โ€” Kernel API Manual ๐Ÿ’–

okay bestie, welcome to the kernel API manual page for struct cxl_region_label(9). This is literally the CXL 2.0 Table 211 situation, and we're gonna get into it. No cap. ๐Ÿซถ

๐ŸŒธ NAME ๐ŸŒธ

struct cxl_region_label โ€” CXL 2.0 Table 211, periodt.

โœจ SYNOPSIS โœจ

       struct cxl_region_label {
           u8 type[NSLABEL_UUID_LEN];
           u8 uuid[NSLABEL_UUID_LEN];
           __le32 flags;
           __le16 nlabel;
           __le16 position;
           __le64 dpa;
           __le64 rawsize;
           __le64 hpa;
           __le32 slot;
           __le32 ig;
           __le32 align;
           u8 reserved[0xac];
           __le64 checksum;
        };

๐ŸŽ€ Members ๐ŸŽ€

  • type โ€” the uuid identifying this label format (region), iykyk ๐Ÿ’…
  • uuid โ€” the uuid for the region this label describes โœจ
  • flags โ€” NSLABEL_FLAG_UPDATING is the moment; all other flags are reserved ๐Ÿšซ
  • nlabel โ€” 1 per interleave-way in the region, okayyy ๐Ÿ‘‘
  • position โ€” this label's position in the set, main character energy ๐ŸŒŸ
  • dpa โ€” start address in device-local capacity for this label ๐Ÿ“
  • rawsize โ€” size of this label's contribution to region, slay ๐Ÿ“
  • hpa โ€” mandatory system physical address to map this region ๐Ÿ—บ๏ธ
  • slot โ€” slot id of this label in label area ๐ŸŽŸ๏ธ
  • ig โ€” interleave granularity (1 << ig) * 256 bytes โšก
  • align โ€” alignment in SZ_256M blocks ๐Ÿงฑ
  • reserved โ€” reserved, bestie, don't touch ๐Ÿ™ˆ
  • checksum โ€” fletcher64 sum of this label ๐Ÿงฎ

๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

  • Kernel file ./drivers/nvdimm/label.h โ€” also peep struct nd_namespace_index(9), struct nvdimm_efi_label(9), struct nvdimm_cxl_label(9), and struct nd_label_id(9) ๐Ÿ’œ

mwah ๐Ÿ’‹ โ€” signed off by ./drivers/nvdimm, dated October 2026, starring struct cxl_region_label(9). periodt. ๐ŸŽ€

๐Ÿ“ฆ where this page comes from