include/linux/sched/idle.h
Source file repositories/reference/linux-study-clean/include/linux/sched/idle.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/sched/idle.h- Extension
.h- Size
- 2550 bytes
- Lines
- 117
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
Dependency Surface
linux/sched.h
Detected Declarations
enum cpu_idle_typefunction __current_set_pollingfunction __current_clr_pollingfunction __current_set_pollingfunction __current_clr_pollingfunction current_set_polling_and_testfunction current_clr_polling_and_testfunction current_clr_pollingfunction __current_set_pollingfunction current_clr_polling_and_testfunction current_clr_polling
Annotated Snippet
static inline void __current_set_polling(void) { }
static inline void __current_clr_polling(void) { }
static inline bool __must_check current_set_polling_and_test(void)
{
return unlikely(tif_need_resched());
}
static inline bool __must_check current_clr_polling_and_test(void)
{
return unlikely(tif_need_resched());
}
static __always_inline void current_clr_polling(void)
{
__current_clr_polling();
smp_mb(); /* paired with resched_curr() */
preempt_fold_need_resched();
}
#endif
#endif /* _LINUX_SCHED_IDLE_H */
Annotation
- Immediate include surface: `linux/sched.h`.
- Detected declarations: `enum cpu_idle_type`, `function __current_set_polling`, `function __current_clr_polling`, `function __current_set_polling`, `function __current_clr_polling`, `function current_set_polling_and_test`, `function current_clr_polling_and_test`, `function current_clr_polling`, `function __current_set_polling`, `function current_clr_polling_and_test`.
- Atlas domain: Core OS / Core Kernel Interface.
- 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.