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.

Dependency Surface

Detected Declarations

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

Implementation Notes