source: trunk/sys/dietlibc/include/sched.h @ 266

Last change on this file since 266 was 1, checked in by alain, 8 years ago

First import

File size: 678 bytes
Line 
1#ifndef _SCHED_H
2#define _SCHED_H 1
3
4#include <time.h>
5#include <sys/types.h>
6
7/*
8 * Scheduling policies
9 */
10
11#define SCHED_RR                0
12#define SCHED_FIFO              1
13#define SCHED_OTHER             SCHED_RR
14
15struct sched_param {
16  int sched_priority;
17};
18
19/* END OF COPY form kernel-header */
20int sched_setparam(pid_t pid, const struct sched_param* p);
21int sched_getparam(pid_t pid, struct sched_param* p);
22int sched_getscheduler(pid_t pid);
23int sched_setscheduler(pid_t pid, int policy, const struct sched_param* p);
24int sched_yield(void);
25int sched_get_priority_max(int policy);
26int sched_get_priority_min(int policy);
27int sched_rr_get_interval(pid_t pid, struct timespec* tp);
28
29#endif  /* _SCHED_H_ */
Note: See TracBrowser for help on using the repository browser.