arch/x86/events/amd/iommu.c
Source file repositories/reference/linux-study-clean/arch/x86/events/amd/iommu.c
File Facts
- System
- Linux kernel
- Corpus path
arch/x86/events/amd/iommu.c- Extension
.c- Size
- 13361 bytes
- Lines
- 492
- 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.
- 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/perf_event.hlinux/init.hlinux/cpumask.hlinux/slab.hlinux/amd-iommu.hasm/msr.h../perf_event.hiommu.h
Detected Declarations
struct perf_amd_iommustruct amd_iommu_event_descfunction _iommu_event_showfunction _iommu_cpumask_showfunction get_next_avail_iommu_bnk_cntrfunction clear_avail_iommu_bnk_cntrfunction perf_iommu_event_initfunction perf_iommu_enable_eventfunction perf_iommu_disable_eventfunction perf_iommu_startfunction perf_iommu_readfunction perf_iommu_stopfunction perf_iommu_addfunction perf_iommu_delfunction _init_events_attrsfunction init_one_iommufunction amd_iommu_pc_initmodule init amd_iommu_pc_init
Annotated Snippet
device_initcall(amd_iommu_pc_init);
Annotation
- Immediate include surface: `linux/perf_event.h`, `linux/init.h`, `linux/cpumask.h`, `linux/slab.h`, `linux/amd-iommu.h`, `asm/msr.h`, `../perf_event.h`, `iommu.h`.
- Detected declarations: `struct perf_amd_iommu`, `struct amd_iommu_event_desc`, `function _iommu_event_show`, `function _iommu_cpumask_show`, `function get_next_avail_iommu_bnk_cntr`, `function clear_avail_iommu_bnk_cntr`, `function perf_iommu_event_init`, `function perf_iommu_enable_event`, `function perf_iommu_disable_event`, `function perf_iommu_start`.
- Atlas domain: Architecture Layer / arch/x86.
- 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.