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)> β€” a memX device name, or a memdev id number. use this to restrict the operation to the specified memdev(s). and yes, you can pass the keyword all to 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 of 0 means "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 if libcxl was 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 © 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