sys_sched_rr_get_interval(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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:


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