STRUCT CXL_MEMDEV_STATE(9)
πΈ NAME πΈ
struct cxl_memdev_state β Generic Type-3 Memory Device Class driver data. This is the Kernel API Manual page for struct cxl_memdev_state(9), bestie β yes, the whole Generic Type-3 Memory Device Class driver data moment. π
β¨ SYNOPSIS β¨
Okay so hereβs the struct in all its iconic glory β copy it exactly, no cap:
struct cxl_memdev_state {
struct cxl_dev_state cxlds;
size_t lsa_size;
char firmware_version[0x10];
u64 total_bytes;
u64 volatile_only_bytes;
u64 persistent_only_bytes;
u64 partition_align_bytes;
u64 active_volatile_bytes;
u64 active_persistent_bytes;
struct cxl_event_state event;
struct cxl_poison_state poison;
struct cxl_security_state security;
struct cxl_fw_state fw;
};
π«Ά Members π«Ά
cxldsβ Core driver state common across Type-2 and Type-3 devices. Shared main-character state.lsa_sizeβ Size of Label Storage Area (CXL 2.0 8.2.9.5.1.1 Identify Memory Device).firmware_versionβ Firmware version for the memory device. Yes, the firmwareβs whole identity.total_bytesβ sum of all possible capacities. All the capacity vibes.volatile_only_bytesβ hard volatile capacity.persistent_only_bytesβ hard persistent capacity.partition_align_bytesβ alignment size for partition-able capacity. Alignment matters, bestie.active_volatile_bytesβ sum of hard + soft volatile.active_persistent_bytesβ sum of hard + soft persistent.eventβ event log driver state. Event-log energy.poisonβ poison driver state info. Poison info, not a snack.securityβ security driver state info. Security state said hi.fwβ firmware upload / activation state. Firmware upload/activation era.
π Description π
Okay so CXL 8.1.12.1 PCI Header - Class Code Register Memory Device defines common memory device functionality like the presence of a mailbox and the functionality related to that like Identify Memory Device and Get Partition Info. Slay. β¨
Also, see CXL 3.0 8.2.9.8.2 Capacity Configuration and Label Storage for details on capacity parameters. Thatβs the tea. π
π SEE ALSO π
Kernel file: ./drivers/cxl/cxlmem.h
struct cxl_memdev(9)struct cxl_attach_region(9)struct cxl_event_state(9)struct cxl_poison_state(9)struct cxl_fw_state(9)struct cxl_security_state(9)struct cxl_mem_command(9)struct cxl_hdm(9)
π Thatβs the whole page, bestie! Source/version: ./drivers/cxl; date: October 2026; page: struct cxl_memdev_state(9). Periodt. π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms