• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <sched.h>
2 #include <errno.h>
3 #include "syscall.h"
4 #include "pthread_impl.h"
5 
sched_setparam(pid_t pid,const struct sched_param * param)6 int sched_setparam(pid_t pid, const struct sched_param *param)
7 {
8 	int r;
9 	if (!param) {
10 		r = -EINVAL;
11 		goto exit;
12 	}
13 
14 	r = __syscall(SYS_sched_setparam, pid, param, MUSL_TYPE_PROCESS);
15 exit:
16 	return __syscall_ret(r);
17 }
18