STRUCT CXL_MEMDEV_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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