arch/x86/xen/xen-ops.h
Source file repositories/reference/linux-study-clean/arch/x86/xen/xen-ops.h
File Facts
- System
- Linux kernel
- Corpus path
arch/x86/xen/xen-ops.h- Extension
.h- Size
- 8779 bytes
- Lines
- 324
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/init.hlinux/clocksource.hlinux/irqreturn.hlinux/linkage.hxen/interface/xenpmu.hxen/xen-ops.hasm/page.htrace/events/xen.h
Detected Declarations
struct trap_infostruct multicall_spacestruct dom0_vga_console_infostruct xen_common_irqfunction xen_mc_issuefunction xen_mc_entryfunction xen_mc_issuefunction xen_pv_pre_suspendfunction xen_smp_initfunction xen_init_spinlocksfunction xen_init_vgafunction xen_efi_initfunction xen_hvm_post_suspendfunction xen_pmu_initfunction xen_smp_intr_initfunction xen_smp_intr_freefunction xen_smp_intr_free_pv
Annotated Snippet
struct xen_common_irq {
int irq;
char *name;
};
#else /* CONFIG_SMP */
static inline int xen_smp_intr_init(unsigned int cpu)
{
return 0;
}
static inline void xen_smp_intr_free(unsigned int cpu) {}
static inline int xen_smp_intr_init_pv(unsigned int cpu)
{
return 0;
}
static inline void xen_smp_intr_free_pv(unsigned int cpu) {}
static inline void xen_smp_count_cpus(void) { }
#endif /* CONFIG_SMP */
void xen_hypercall_hvm(void);
void xen_hypercall_amd(void);
void xen_hypercall_intel(void);
void xen_hypercall_setfunc(void);
void *__xen_hypercall_setfunc(void);
#endif /* XEN_OPS_H */
Annotation
- Immediate include surface: `linux/init.h`, `linux/clocksource.h`, `linux/irqreturn.h`, `linux/linkage.h`, `xen/interface/xenpmu.h`, `xen/xen-ops.h`, `asm/page.h`, `trace/events/xen.h`.
- Detected declarations: `struct trap_info`, `struct multicall_space`, `struct dom0_vga_console_info`, `struct xen_common_irq`, `function xen_mc_issue`, `function xen_mc_entry`, `function xen_mc_issue`, `function xen_pv_pre_suspend`, `function xen_smp_init`, `function xen_init_spinlocks`.
- Atlas domain: Architecture Layer / arch/x86.
- Implementation status: source implementation candidate.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.