drivers/cxl/pmem.c
Source file repositories/reference/linux-study-clean/drivers/cxl/pmem.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/cxl/pmem.c- Extension
.c- Size
- 14517 bytes
- Lines
- 563
- Domain
- Driver Families
- Bucket
- drivers/cxl
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/libnvdimm.hlinux/unaligned.hlinux/device.hlinux/module.hlinux/ndctl.hlinux/async.hlinux/slab.hlinux/nd.hcxlmem.hcxl.h
Detected Declarations
struct cxl_pmem_region_infofunction devm_cxl_add_nvdimm_bridgefunction clear_exclusivefunction unregister_nvdimmfunction provider_showfunction id_showfunction dirty_shutdown_showfunction cxl_dimm_visiblefunction cxl_nvdimm_arm_dirty_shutdown_trackingfunction cxl_nvdimm_probefunction cxl_pmem_get_config_sizefunction cxl_pmem_get_config_datafunction cxl_pmem_set_config_datafunction cxl_pmem_nvdimm_ctlfunction cxl_pmem_ctlfunction detach_nvdimmfunction scoped_guardfunction unregister_nvdimm_busfunction cxl_nvdimm_bridge_probefunction unregister_nvdimm_regionfunction cxlr_pmem_remove_resourcefunction cxl_pmem_region_probefunction cxl_pmem_initfunction cxl_pmem_exitmodule init cxl_pmem_init
Annotated Snippet
subsys_initcall(cxl_pmem_init);
module_exit(cxl_pmem_exit);
MODULE_IMPORT_NS("CXL");
MODULE_ALIAS_CXL(CXL_DEVICE_NVDIMM_BRIDGE);
MODULE_ALIAS_CXL(CXL_DEVICE_NVDIMM);
MODULE_ALIAS_CXL(CXL_DEVICE_PMEM_REGION);
Annotation
- Immediate include surface: `linux/libnvdimm.h`, `linux/unaligned.h`, `linux/device.h`, `linux/module.h`, `linux/ndctl.h`, `linux/async.h`, `linux/slab.h`, `linux/nd.h`.
- Detected declarations: `struct cxl_pmem_region_info`, `function devm_cxl_add_nvdimm_bridge`, `function clear_exclusive`, `function unregister_nvdimm`, `function provider_show`, `function id_show`, `function dirty_shutdown_show`, `function cxl_dimm_visible`, `function cxl_nvdimm_arm_dirty_shutdown_tracking`, `function cxl_nvdimm_probe`.
- Atlas domain: Driver Families / drivers/cxl.
- Implementation status: integration implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.