drivers/cxl/acpi.c
Source file repositories/reference/linux-study-clean/drivers/cxl/acpi.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/cxl/acpi.c- Extension
.c- Size
- 25708 bytes
- Lines
- 1016
- 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/platform_device.hlinux/module.hlinux/device.hlinux/kernel.hlinux/acpi.hlinux/pci.hlinux/node.hasm/div64.hcxlpci.hcxl.h
Detected Declarations
struct cxl_cxims_contextstruct cxl_cfmws_contextstruct cxl_chbs_contextfunction cxl_do_xormap_calcfunction cxl_apply_xor_mapsfunction cxl_parse_cximsfunction cfmws_to_decoder_flagsfunction cxl_acpi_cfmws_verifyfunction cxl_acpi_evaluate_qtg_dsmfunction cxl_acpi_qos_classfunction del_cxl_resourcefunction add_or_reset_cxl_resourcefunction cxl_setup_extended_linear_cachefunction cxl_parse_cfmwsfunction cxl_get_chbs_iterfunction cxl_get_chbsfunction get_genport_coordinatesfunction add_host_bridge_dportfunction add_host_bridge_uportfunction dportfunction add_root_nvdimm_bridgefunction cxl_acpi_lock_reset_classfunction cxl_set_public_resourcefunction remove_cxl_resourcesfunction add_cxl_resourcesfunction pair_cxl_resourcefunction cxl_acpi_probefunction cxl_acpi_initfunction cxl_acpi_exit
Annotated Snippet
* subsys_initcall(efisubsys_init), which must run first.
*/
subsys_initcall_sync(cxl_acpi_init);
/*
* Arrange for host-bridge ports to be active synchronous with
* cxl_acpi_probe() exit.
*/
MODULE_SOFTDEP("pre: cxl_port");
module_exit(cxl_acpi_exit);
MODULE_DESCRIPTION("CXL ACPI: Platform Support");
MODULE_LICENSE("GPL v2");
MODULE_IMPORT_NS("CXL");
MODULE_IMPORT_NS("ACPI");
Annotation
- Immediate include surface: `linux/platform_device.h`, `linux/module.h`, `linux/device.h`, `linux/kernel.h`, `linux/acpi.h`, `linux/pci.h`, `linux/node.h`, `asm/div64.h`.
- Detected declarations: `struct cxl_cxims_context`, `struct cxl_cfmws_context`, `struct cxl_chbs_context`, `function cxl_do_xormap_calc`, `function cxl_apply_xor_maps`, `function cxl_parse_cxims`, `function cfmws_to_decoder_flags`, `function cxl_acpi_cfmws_verify`, `function cxl_acpi_evaluate_qtg_dsm`, `function cxl_acpi_qos_class`.
- 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.