arch/x86/include/asm/cpu.h
Source file repositories/reference/linux-study-clean/arch/x86/include/asm/cpu.h
File Facts
- System
- Linux kernel
- Corpus path
arch/x86/include/asm/cpu.h- Extension
.h- Size
- 1882 bytes
- Lines
- 70
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/device.hlinux/cpu.hlinux/topology.hlinux/nodemask.hlinux/percpu.hasm/ibt.h
Detected Declarations
struct cpu_signaturefunction sld_setupfunction handle_guest_split_lockfunction handle_bus_lockfunction init_ia32_feat_ctl
Annotated Snippet
static inline void __init sld_setup(struct cpuinfo_x86 *c) {}
static inline bool handle_user_split_lock(struct pt_regs *regs, long error_code)
{
return false;
}
static inline bool handle_guest_split_lock(unsigned long ip)
{
return false;
}
static inline void handle_bus_lock(struct pt_regs *regs) {}
static inline void split_lock_init(void) {}
static inline void bus_lock_init(void) {}
#endif
#ifdef CONFIG_IA32_FEAT_CTL
void init_ia32_feat_ctl(struct cpuinfo_x86 *c);
#else
static inline void init_ia32_feat_ctl(struct cpuinfo_x86 *c) {}
#endif
extern __noendbr void cet_disable(void);
struct cpu_signature;
void intel_collect_cpu_info(struct cpu_signature *sig);
extern u64 x86_read_arch_cap_msr(void);
bool intel_find_matching_signature(void *mc, struct cpu_signature *sig);
int intel_microcode_sanity_check(void *mc, bool print_err, int hdr_type);
extern struct cpumask cpus_stop_mask;
#endif /* _ASM_X86_CPU_H */
Annotation
- Immediate include surface: `linux/device.h`, `linux/cpu.h`, `linux/topology.h`, `linux/nodemask.h`, `linux/percpu.h`, `asm/ibt.h`.
- Detected declarations: `struct cpu_signature`, `function sld_setup`, `function handle_guest_split_lock`, `function handle_bus_lock`, `function init_ia32_feat_ctl`.
- 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.