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