task_nice(9)
okay bestie, welcome to task_nice(9), straight outta the Kernel API Manual β¨ this page is all about getting the nice value of a task, and it's literally right here. π
β¨ NAME β¨
task_nice β lowkey returns the nice value of a given task. that's the whole gig, bestie π«Ά
πΈ SYNOPSIS πΈ
int task_nice (const struct task_struct *p );
π ARGUMENTS π
pβ the task in question. like, the task you're asking about, periodt π
π¦ RETURN π¦
It hands you back the nice value, and the range is [ -20 ... 0 ... 19 ] π so that's the number vibe you're getting.
π SEE ALSO π
- Kernel file
./include/linux/sched.h struct prev_cputime(9)__task_lazy_mmu_mode_active(9)is_lazy_mmu_mode_active(9)set_cpus_allowed_ptr(9)is_idle_task(9)
go peek at those too, iykyk π
mwah π this lil page is sourced from ./include/linux, dated October 2026, and it's the task_nice(9) manual page. slay and goodbye π
π¦ 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