STRUCT CXL_MEMDEV(9)
β¨ struct cxl_memdev β Kernel API Manual β¨
π NAME π
okay so struct cxl_memdev is literally the CXL bus object representing a Type-3 Memory Device β thatβs the whole name vibe, bestie. π
β¨ SYNOPSIS β¨
struct cxl_memdev {
struct device dev;
struct cdev cdev;
struct cxl_dev_state *cxlds;
struct work_struct detach_work;
struct cxl_nvdimm_bridge *cxl_nvb;
struct cxl_nvdimm *cxl_nvd;
struct cxl_port *endpoint;
const struct cxl_memdev_attach *attach;
int id;
int depth;
u8 scrub_cycle;
int scrub_region_id;
struct cxl_mem_err_rec *err_rec_array;
};
π§ Members π§
devβ the driver core device object, iconic.cdevβ the char dev core object for ioctl operations. yep, ioctl business.cxldsβ the device state backing this device.detach_workβ work item for when an active memdev lost a port in its ancestry. πcxl_nvbβ coordinates removal ofcxl_nvdif present.cxl_nvdβ optional bridge to an nvdimm if the device supports pmem.endpointβ connection to the CXL port topology for this memory device.attachβ means the creator of this memdev depends on CXL link attach to operate.idβ id number of this memdev instance. periodt.depthβ endpoint port depth.scrub_cycleβ current scrub cycle set for this device.scrub_region_idβ id number of a backed region (if any) for which the current scrub cycle is set.err_rec_arrayβ list ofxarrarysto store the memdev error records, so you can check whether the attributes for a memory repair operation are from the current boot. π₯
π SEE ALSO π
Kernel file ./drivers/cxl/cxlmem.h β go peek at 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_memdev_state(9), struct cxl_mem_command(9), and struct cxl_hdm(9). π¦
π signed off from source/version ./drivers/cxl, dated October 2026, all about struct cxl_memdev(9) β byeee! π
π¦ 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