drivers/acpi/numa/hmat.c
Source file repositories/reference/linux-study-clean/drivers/acpi/numa/hmat.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/acpi/numa/hmat.c- Extension
.c- Size
- 27382 bytes
- Lines
- 1105
- Domain
- Driver Families
- Bucket
- drivers/acpi
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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/acpi.hlinux/bitops.hlinux/device.hlinux/init.hlinux/list.hlinux/mm.hlinux/platform_device.hlinux/list_sort.hlinux/memregion.hlinux/memory.hlinux/mutex.hlinux/node.hlinux/sysfs.hlinux/dax.hlinux/memory-tiers.h
Detected Declarations
struct target_cachestruct memory_targetstruct memory_initiatorstruct memory_localityenum locality_typesfunction disable_hmatfunction hmat_get_extended_linear_cache_sizefunction list_for_each_entryfunction list_for_each_entryfunction acpi_get_genport_coordinatesfunction alloc_memory_initiatorfunction alloc_memory_targetfunction alloc_genport_targetfunction hmat_normalizefunction hmat_update_target_accessfunction hmat_add_localityfunction hmat_update_targetfunction hmat_parse_localityfunction hmat_parse_cachefunction hmat_parse_proximity_domainfunction hmat_parse_subtablefunction srat_parse_mem_affinityfunction srat_parse_genport_affinityfunction hmat_initiator_perffunction hmat_update_bestfunction initiator_cmpfunction initiators_to_nodemaskfunction hmat_update_target_attrsfunction list_for_each_entryfunction __hmat_register_target_initiatorsfunction hmat_update_generic_targetfunction hmat_register_target_initiatorsfunction hmat_register_target_cachefunction hmat_register_target_perffunction hmat_register_target_devicesfunction hmat_hotplug_targetfunction hmat_register_targetfunction hmat_register_targetsfunction hmat_callbackfunction hmat_set_default_dram_perffunction for_each_node_maskfunction hmat_calculate_adistancefunction hmat_free_structuresfunction list_for_each_entry_safefunction list_for_each_entry_safefunction list_for_each_entry_safefunction list_for_each_entry_safefunction hmat_init
Annotated Snippet
subsys_initcall(hmat_init);
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/bitops.h`, `linux/device.h`, `linux/init.h`, `linux/list.h`, `linux/mm.h`, `linux/platform_device.h`, `linux/list_sort.h`.
- Detected declarations: `struct target_cache`, `struct memory_target`, `struct memory_initiator`, `struct memory_locality`, `enum locality_types`, `function disable_hmat`, `function hmat_get_extended_linear_cache_size`, `function list_for_each_entry`, `function list_for_each_entry`, `function acpi_get_genport_coordinates`.
- Atlas domain: Driver Families / drivers/acpi.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.