arch/x86/events/amd/uncore.c
Source file repositories/reference/linux-study-clean/arch/x86/events/amd/uncore.c
File Facts
- System
- Linux kernel
- Corpus path
arch/x86/events/amd/uncore.c- Extension
.c- Size
- 30622 bytes
- Lines
- 1226
- Domain
- Architecture Layer
- Bucket
- arch/x86
- Inferred role
- Architecture Layer: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- 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/perf_event.hlinux/percpu.hlinux/types.hlinux/slab.hlinux/init.hlinux/cpu.hlinux/cpumask.hlinux/cpufeature.hlinux/smp.hasm/perf_event.hasm/cpuid/api.hasm/msr.h
Detected Declarations
struct amd_uncore_ctxstruct amd_uncore_pmustruct amd_uncorefunction amd_uncore_hrtimerfunction for_each_set_bitfunction amd_uncore_start_hrtimerfunction amd_uncore_cancel_hrtimerfunction amd_uncore_init_hrtimerfunction amd_uncore_readfunction amd_uncore_startfunction amd_uncore_stopfunction amd_uncore_addfunction amd_uncore_delfunction amd_uncore_event_initfunction amd_f17h_uncore_is_visiblefunction amd_f19h_uncore_is_visiblefunction amd_uncore_attr_show_cpumaskfunction amd_uncore_ctx_cidfunction amd_uncore_ctx_gidfunction amd_uncore_ctx_num_pmcsfunction amd_uncore_ctx_freefunction amd_uncore_ctx_initfunction for_each_online_cpufunction amd_uncore_ctx_movefunction for_each_online_cpufunction amd_uncore_cpu_startingfunction amd_uncore_cpu_onlinefunction amd_uncore_cpu_down_preparefunction amd_uncore_cpu_deadfunction amd_uncore_df_event_initfunction amd_uncore_df_addfunction amd_uncore_df_ctx_scanfunction amd_uncore_df_ctx_initfunction amd_uncore_l3_event_initfunction amd_uncore_l3_ctx_scanfunction amd_uncore_l3_ctx_initfunction amd_uncore_umc_event_initfunction amd_uncore_umc_startfunction amd_uncore_umc_readfunction bitfunction amd_uncore_umc_ctx_scanfunction amd_uncore_umc_ctx_initfunction for_each_set_bitfunction amd_uncore_initfunction amd_uncore_exitmodule init amd_uncore_init
Annotated Snippet
module_init(amd_uncore_init);
module_exit(amd_uncore_exit);
MODULE_DESCRIPTION("AMD Uncore Driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/perf_event.h`, `linux/percpu.h`, `linux/types.h`, `linux/slab.h`, `linux/init.h`, `linux/cpu.h`, `linux/cpumask.h`, `linux/cpufeature.h`.
- Detected declarations: `struct amd_uncore_ctx`, `struct amd_uncore_pmu`, `struct amd_uncore`, `function amd_uncore_hrtimer`, `function for_each_set_bit`, `function amd_uncore_start_hrtimer`, `function amd_uncore_cancel_hrtimer`, `function amd_uncore_init_hrtimer`, `function amd_uncore_read`, `function amd_uncore_start`.
- Atlas domain: Architecture Layer / arch/x86.
- 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.