kernel/sched/build_policy.c
Source file repositories/reference/linux-study-clean/kernel/sched/build_policy.c
File Facts
- System
- Linux kernel
- Corpus path
kernel/sched/build_policy.c- Extension
.c- Size
- 1735 bytes
- Lines
- 76
- Domain
- Core OS
- Bucket
- Scheduler, Processes, Timers, Sync, And Syscalls
- 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/clock.hlinux/sched/cputime.hlinux/sched/hotplug.hlinux/sched/isolation.hlinux/sched/posix-timers.hlinux/sched/rt.hlinux/cpuidle.hlinux/jiffies.hlinux/kobject.hlinux/livepatch.hlinux/pm.hlinux/psi.hlinux/rhashtable.hlinux/seq_buf.hlinux/seqlock_api.hlinux/slab.hlinux/suspend.hlinux/tsacct_kern.hlinux/vtime.hlinux/sysrq.hlinux/percpu-rwsem.huapi/linux/sched/types.hsched.hsmp.hautogroup.hstats.hpelt.hidle.crt.ccpudeadline.cpelt.ccputime.c
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0-only
/*
* These are the scheduling policy related scheduler files, built
* in a single compilation unit for build efficiency reasons.
*
* ( Incidentally, the size of the compilation unit is roughly
* comparable to core.c and fair.c, the other two big
* compilation units. This helps balance build time, while
* coalescing source files to amortize header inclusion
* cost. )
*
* core.c and fair.c are built separately.
*/
/* Headers: */
#include <linux/sched/clock.h>
#include <linux/sched/cputime.h>
#include <linux/sched/hotplug.h>
#include <linux/sched/isolation.h>
#include <linux/sched/posix-timers.h>
#include <linux/sched/rt.h>
#include <linux/cpuidle.h>
#include <linux/jiffies.h>
#include <linux/kobject.h>
#include <linux/livepatch.h>
#include <linux/pm.h>
#include <linux/psi.h>
#include <linux/rhashtable.h>
#include <linux/seq_buf.h>
#include <linux/seqlock_api.h>
#include <linux/slab.h>
#include <linux/suspend.h>
#include <linux/tsacct_kern.h>
#include <linux/vtime.h>
#include <linux/sysrq.h>
#include <linux/percpu-rwsem.h>
#include <uapi/linux/sched/types.h>
#include "sched.h"
#include "smp.h"
#include "autogroup.h"
#include "stats.h"
#include "pelt.h"
/* Source code modules: */
#include "idle.c"
#include "rt.c"
#include "cpudeadline.c"
#include "pelt.c"
#include "cputime.c"
#include "deadline.c"
#ifdef CONFIG_SCHED_CLASS_EXT
# include <linux/btf_ids.h>
# include <linux/find.h>
# include <linux/genalloc.h>
# include "ext_types.h"
# include "ext_internal.h"
# include "ext_cid.h"
# include "ext_arena.h"
# include "ext_idle.h"
# include "ext.c"
# include "ext_cid.c"
# include "ext_arena.c"
# include "ext_idle.c"
#endif
#include "syscalls.c"
Annotation
- Immediate include surface: `linux/sched/clock.h`, `linux/sched/cputime.h`, `linux/sched/hotplug.h`, `linux/sched/isolation.h`, `linux/sched/posix-timers.h`, `linux/sched/rt.h`, `linux/cpuidle.h`, `linux/jiffies.h`.
- Atlas domain: Core OS / Scheduler, Processes, Timers, Sync, And Syscalls.
- 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.