CXL-READ-LABELS(1)
π
cxl-read-labels(1) β the cxl manual, bestie edition
okay so this is cxl-read-labels, and it's literally the "peek behind the curtain" command for your CXL memory devices. Buckle up π
β¨ NAME β¨
cxl-read-labels β read out the label area on a CXL memdev π¦
πΈ SYNOPSIS πΈ
cxl read-labels <mem0> [<mem1>..<memN>] [<options>]
π DESCRIPTION π
so the region label area is this tiny persistent partition of capacity that lives on some CXL memory devices, right? and its whole job is to configure or figure out the set of memory devices that are part of different interleave sets. iconic of it honestly π
this command dumps the raw binary data in a memdev's label area to stdout or to a file. and if you're doing the multi-memdev thing? the data gets concatenated. one big blob, no cap. π«Ά
β¨ OPTIONS β¨
<memory device(s)>β amemXdevice name, or a memdev id number. use this to restrict the operation to the specified memdev(s). and yes, you can pass the keywordallto say "no restrictions, we're doing everybody" π-S,--serialβ instead of a memdev id number, interpret the<memdev>argument(s) as a list of serial numbers. slay.-s,--size=β limit the operation to the given number of bytes. and a size of0means "operate over the entire label capacity" β i.e. go off, take it all π-O,--offset=β begin the operation at the given offset into the label area. pick your starting point bestie π―-vβ turn on verbose debug messages in the library β but only iflibcxlwas built with logging and debug enabled. so like, it's giving "conditional queen" π-b,--bus=β restrict the operation to the specified bus π-o,--outputβ output file π
π COPYRIGHT π
Copyright Β© 2016 - 2022, Intel Corporation. License GPLv2: GNU GPL version 2 http://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. (fr fr, no warranty, read it and weep π)
π¦ SEE ALSO π¦
cxl-write-labels(1), cxl-zero-labels(1), CXL-2.0 9.13.2
π friendly reminder that this thing dumps raw binary β so maybe don't just cat it into your terminal and expect a good time. redirect it somewhere, bestie. π
and that's the page!! this one's from the cxl manual, dated 2026-06-30 β go read some labels, you absolute main character π§π
π¦ where this page comes from
- arch rolling: ndctl 85-1 Β· LGPL-2.1-only AND GPL-2.0-only AND CC0-1.0 AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms