sys_sched_rr_get_interval(9)
π sys_sched_rr_get_interval(9) π
okay bestie, this is a Kernel API Manual page for sys_sched_rr_get_interval(9) β the manual name is folded in right here, cute and accounted for. π
β¨ NAME β¨
sys_sched_rr_get_interval β return the default time-slice of a process. slay, thatβs the whole vibe. π
π¦ SYNOPSIS π¦
long sys_sched_rr_get_interval (pid_t pid , struct __kernel_timespec
__user * interval );
πΈ ARGUMENTS πΈ
two args, both important, no skipping:
pidβ pid of the process.intervalβ userspace pointer to the time-slice value.
π DESCRIPTION π
this syscall writes the default time-slice value of a given process into the user-space timespec buffer. literally thatβs the move. β¨
a value of '0' means infinity. iconic little detail, do not forget it. π«
π₯ RETURN π₯
on success, 0, and the time-slice is in interval. otherwise, an error code. thatβs the whole return situation, no cap. π
π SEE ALSO π
kernel file ./kernel/sched/syscalls.c plus the whole friend group:
task_prio(9)idle_cpu(9)idle_task(9)find_process_by_pid(9)sched_setscheduler(9)sched_setscheduler_nocheck(9)sys_sched_setscheduler(9)sys_sched_setparam(9)sys_sched_setattr(9)sys_sched_getscheduler(9)sys_sched_getparam(9)sys_sched_getattr(9)sys_sched_setaffinity(9)sys_sched_getaffinity(9)sys_sched_yield(9)yield(9)yield_to(9)sys_sched_get_priority_max(9)sys_sched_get_priority_min(9)
signed off with source ./kernel/sched, October 2026, and the manual page sys_sched_rr_get_interval(9) β bye bestie, go read those SEE ALSOs π«Άπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms