drivers/dax/hmem/hmem.c
Source file repositories/reference/linux-study-clean/drivers/dax/hmem/hmem.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/dax/hmem/hmem.c- Extension
.c- Size
- 6317 bytes
- Lines
- 258
- Domain
- Driver Families
- Bucket
- drivers/dax
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/platform_device.hlinux/memregion.hlinux/module.hlinux/dax.h../../cxl/cxl.h../bus.h
Detected Declarations
function dax_hmem_probefunction release_memregionfunction release_hmemfunction dax_hmem_flush_workfunction __hmem_register_devicefunction hmem_register_cxl_devicefunction process_defer_workfunction hmem_register_devicefunction dax_hmem_platform_probefunction dax_hmem_initfunction dax_hmem_exitmodule init dax_hmem_init
Annotated Snippet
module_init(dax_hmem_init);
module_exit(dax_hmem_exit);
MODULE_ALIAS("platform:hmem*");
MODULE_ALIAS("platform:hmem_platform*");
MODULE_DESCRIPTION("HMEM DAX: direct access to 'specific purpose' memory");
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Intel Corporation");
Annotation
- Immediate include surface: `linux/platform_device.h`, `linux/memregion.h`, `linux/module.h`, `linux/dax.h`, `../../cxl/cxl.h`, `../bus.h`.
- Detected declarations: `function dax_hmem_probe`, `function release_memregion`, `function release_hmem`, `function dax_hmem_flush_work`, `function __hmem_register_device`, `function hmem_register_cxl_device`, `function process_defer_work`, `function hmem_register_device`, `function dax_hmem_platform_probe`, `function dax_hmem_init`.
- Atlas domain: Driver Families / drivers/dax.
- 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.