blob: 761c434a15eb7bc0dc33c2d13932b0eaf0a302af (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef INTERNAL_H
#define INTERNAL_H
/* low level operations, not intended for API use */
/* prepare a real-time task */
typedef int (*rt_setup_fn_t)(int pid, void* arg);
int __launch_rt_task(rt_fn_t rt_prog, void *rt_arg,
rt_setup_fn_t setup, void* setup_arg);
#define check(str) \
if (ret == -1) { \
perror(str); \
fprintf(stderr, \
"Warning: Could not initialize LITMUS^RT, " \
"%s failed.\n", str \
); \
}
#endif
int sched_setscheduler(pid_t pid, int policy, int* prioriy);
int sched_getscheduler(pid_t pid);
|