drivers/cpufreq/amd-pstate-ut.c
Source file repositories/reference/linux-study-clean/drivers/cpufreq/amd-pstate-ut.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/cpufreq/amd-pstate-ut.c- Extension
.c- Size
- 15539 bytes
- Lines
- 592
- Domain
- Driver Families
- Bucket
- drivers/cpufreq
- 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/bitfield.hlinux/cpufeature.hlinux/cpufreq.hlinux/kernel.hlinux/module.hlinux/moduleparam.hlinux/mm.hlinux/fs.hlinux/cleanup.hacpi/cppc_acpi.hasm/msr.hamd-pstate.h
Detected Declarations
struct amd_pstate_ut_structenum attr_categoryfunction test_in_listfunction get_shared_memfunction amd_pstate_ut_acpi_cpc_validfunction amd_pstate_ut_check_enabledfunction amd_pstate_ut_check_perffunction for_each_online_cpufunction amd_pstate_ut_check_freqfunction for_each_online_cpufunction amd_pstate_set_modefunction amd_pstate_ut_eppfunction amd_pstate_ut_check_driverfunction attr_in_driverfunction amd_pstate_ut_check_freq_attrsfunction amd_pstate_ut_initfunction amd_pstate_ut_exitmodule init amd_pstate_ut_init
Annotated Snippet
module_init(amd_pstate_ut_init);
module_exit(amd_pstate_ut_exit);
MODULE_AUTHOR("Meng Li <li.meng@amd.com>");
MODULE_DESCRIPTION("AMD P-state driver Test module");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/bitfield.h`, `linux/cpufeature.h`, `linux/cpufreq.h`, `linux/kernel.h`, `linux/module.h`, `linux/moduleparam.h`, `linux/mm.h`, `linux/fs.h`.
- Detected declarations: `struct amd_pstate_ut_struct`, `enum attr_category`, `function test_in_list`, `function get_shared_mem`, `function amd_pstate_ut_acpi_cpc_valid`, `function amd_pstate_ut_check_enabled`, `function amd_pstate_ut_check_perf`, `function for_each_online_cpu`, `function amd_pstate_ut_check_freq`, `function for_each_online_cpu`.
- Atlas domain: Driver Families / drivers/cpufreq.
- 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.