drivers/platform/x86/amd/hfi/hfi.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/amd/hfi/hfi.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/amd/hfi/hfi.c- Extension
.c- Size
- 13757 bytes
- Lines
- 547
- Domain
- Driver Families
- Bucket
- drivers/platform
- 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/acpi.hlinux/cpu.hlinux/debugfs.hlinux/gfp.hlinux/init.hlinux/io.hlinux/kernel.hlinux/module.hlinux/mailbox_client.hlinux/mutex.hlinux/percpu-defs.hlinux/platform_device.hlinux/smp.hlinux/topology.hlinux/workqueue.hasm/cpu_device_id.hacpi/pcc.hacpi/cppc_acpi.h
Detected Declarations
struct amd_shmem_infostruct amd_hfi_datastruct amd_hfi_classesstruct amd_hfi_cpuinfofunction amd_hfi_sched_itmt_workfunction find_cpu_index_by_apicidfunction for_each_possible_cpufunction amd_hfi_fill_metadatafunction amd_hfi_alloc_class_datafunction for_each_possible_cpufunction amd_hfi_removefunction amd_set_hfi_ipcc_scorefunction amd_hfi_set_statefunction amd_hfi_onlinefunction amd_hfi_offlinefunction update_hfi_ipcc_scoresfunction for_each_possible_cpufunction amd_hfi_metadata_parserfunction class_capabilities_showfunction amd_hfi_pm_resumefunction for_each_online_cpufunction amd_hfi_pm_suspendfunction for_each_online_cpufunction amd_hfi_probefunction amd_hfi_initfunction amd_hfi_exitmodule init amd_hfi_init
Annotated Snippet
module_init(amd_hfi_init);
module_exit(amd_hfi_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("AMD Hardware Feedback Interface Driver");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/cpu.h`, `linux/debugfs.h`, `linux/gfp.h`, `linux/init.h`, `linux/io.h`, `linux/kernel.h`, `linux/module.h`.
- Detected declarations: `struct amd_shmem_info`, `struct amd_hfi_data`, `struct amd_hfi_classes`, `struct amd_hfi_cpuinfo`, `function amd_hfi_sched_itmt_work`, `function find_cpu_index_by_apicid`, `function for_each_possible_cpu`, `function amd_hfi_fill_metadata`, `function amd_hfi_alloc_class_data`, `function for_each_possible_cpu`.
- Atlas domain: Driver Families / drivers/platform.
- 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.