arch/x86/hyperv/hv_apic.c
Source file repositories/reference/linux-study-clean/arch/x86/hyperv/hv_apic.c
File Facts
- System
- Linux kernel
- Corpus path
arch/x86/hyperv/hv_apic.c- Extension
.c- Size
- 8872 bytes
- Lines
- 342
- Domain
- Architecture Layer
- Bucket
- arch/x86
- Inferred role
- Architecture Layer: implementation source
- Status
- source 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.
- 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/types.hlinux/vmalloc.hlinux/mm.hlinux/clockchips.hlinux/slab.hlinux/cpuhotplug.hasm/hypervisor.hasm/mshyperv.hasm/apic.hasm/msr.hasm/trace/hyperv.h
Detected Declarations
function hv_apic_icr_readfunction hv_apic_icr_writefunction hv_enable_coco_interruptfunction hv_apic_readfunction hv_apic_writefunction hv_apic_eoi_writefunction cpu_is_selffunction __send_ipi_mask_exfunction __send_ipi_maskfunction for_each_cpufunction __send_ipi_onefunction hv_send_ipifunction hv_send_ipi_maskfunction hv_send_ipi_mask_allbutselffunction hv_send_ipi_allbutselffunction hv_send_ipi_allfunction hv_send_ipi_selffunction hv_apic_init
Annotated Snippet
if (!x2apic_enabled()) {
apic_update_callback(read, hv_apic_read);
apic_update_callback(write, hv_apic_write);
apic_update_callback(icr_write, hv_apic_icr_write);
apic_update_callback(icr_read, hv_apic_icr_read);
}
}
}
Annotation
- Immediate include surface: `linux/types.h`, `linux/vmalloc.h`, `linux/mm.h`, `linux/clockchips.h`, `linux/slab.h`, `linux/cpuhotplug.h`, `asm/hypervisor.h`, `asm/mshyperv.h`.
- Detected declarations: `function hv_apic_icr_read`, `function hv_apic_icr_write`, `function hv_enable_coco_interrupt`, `function hv_apic_read`, `function hv_apic_write`, `function hv_apic_eoi_write`, `function cpu_is_self`, `function __send_ipi_mask_ex`, `function __send_ipi_mask`, `function for_each_cpu`.
- Atlas domain: Architecture Layer / arch/x86.
- Implementation status: source 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.