/* Chris, please insert the standard red hat copyright stuff here. */ /* * Written by Robert Collins * from the opengroup specifications */ #ifndef _SCHED_H #define _SCHED_H #include /* we return -1 and set errno on failure */ #define SCHED_FIFO 1 #define SCHED_RR 2 #define SCHED_OTHER 3 struct sched_param { int sched_priority; }; extern "C" { /* max priority for policy */ int sched_get_priority_max (int); /* min priority for policy */ int sched_get_priority_min (int); /* get sched params for process */ int sched_getparam (pid_t, struct sched_param *); /* get the scheduler for pid */ int sched_getscheduler (pid_t); /* get the time quantum for pid */ int sched_rr_get_interval (pid_t, struct timespec *); /* set the scheduling parameters */ int sched_setparam (pid_t, const struct sched_param *); /* set the scheduler */ int sched_setscheduler (pid_t, int, const struct sched_param *); /* yield the cpu */ int sched_yield (void); } #endif /* _SCHED_H */