sched_setparam(2) System Calls Manual sched_setparam(2) sched_setparam, sched_getparam - (libc -lc) #include int sched_setparam(pid_t pid, const struct sched_param *param); int sched_getparam(pid_t pid, struct sched_param *param); struct sched_param { ... int sched_priority; ... }; sched_setparam() pid. pid . param pid. sched(7) . sched_getparam() pid. pid . sched_setparam() param . param->sched_priority sched_get_priority_min(2) sched_get_priority_max(2). sched(7). POSIX sched_setparam() sched_getparam() _POSIX_PRIORITY_SCHEDULING . sched_setparam() sched_getparam() 0. -1 errno . EINVAL : param NULL pid EINVAL (sched_setparam()) param . EPERM (sched_setparam()) (: CAP_SYS_NICE). ESRCH (thread) pid. POSIX.1-2024. POSIX.1-2001. getpriority(2), gettid(2), nice(2), sched_get_priority_max(2), sched_get_priority_min(2), sched_getaffinity(2), sched_getscheduler(2), sched_setaffinity(2), sched_setattr(2), sched_setscheduler(2), setpriority(2), capabilities(7), sched(7) 3 . . : . 6.18 8 2026 sched_setparam(2)