• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <sched.h>
2 #include <errno.h>
3 #include "syscall.h"
4 #ifdef __LITEOS_A__
5 #include "pthread_impl.h"
6 #endif
7 
sched_getscheduler(pid_t pid)8 int sched_getscheduler(pid_t pid)
9 {
10 	int r = -ENOSYS;
11 #ifdef __LITEOS_A__
12 	r = __syscall(SYS_sched_getscheduler, pid, MUSL_TYPE_PROCESS);
13 #else
14 	r = __syscall(SYS_sched_getscheduler, pid);
15 #endif
16 	return __syscall_ret(r);
17 }
18