arch/x86/kernel/cpu/umwait.c
Source file repositories/reference/linux-study-clean/arch/x86/kernel/cpu/umwait.c
File Facts
- System
- Linux kernel
- Corpus path
arch/x86/kernel/cpu/umwait.c- Extension
.c- Size
- 6286 bytes
- Lines
- 247
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/syscore_ops.hlinux/suspend.hlinux/cpu.hasm/msr.hasm/mwait.h
Detected Declarations
function umwait_update_control_msrfunction umwait_cpu_onlinefunction umwait_cpu_offlinefunction umwait_syscore_resumefunction umwait_ctrl_c02_enabledfunction umwait_ctrl_max_timefunction umwait_update_controlfunction enable_c02_showfunction enable_c02_storefunction max_time_showfunction max_time_storefunction umwait_initmodule init umwait_init
Annotated Snippet
device_initcall(umwait_init);
Annotation
- Immediate include surface: `linux/syscore_ops.h`, `linux/suspend.h`, `linux/cpu.h`, `asm/msr.h`, `asm/mwait.h`.
- Detected declarations: `function umwait_update_control_msr`, `function umwait_cpu_online`, `function umwait_cpu_offline`, `function umwait_syscore_resume`, `function umwait_ctrl_c02_enabled`, `function umwait_ctrl_max_time`, `function umwait_update_control`, `function enable_c02_show`, `function enable_c02_store`, `function max_time_show`.
- 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.