/* rt-sched.h - sched_setattr() and sched_getattr() API (C) Dario Faggioli , 2009, 2010 Copyright (C) 2014 BMW Car IT GmbH, Daniel Wagner #include #ifndef SCHED_DEADLINE #define SCHED_DEADLINE 6 #endif struct sched_attr { uint32_t size; uint32_t sched_policy; uint64_t sched_flags; /* SCHED_NORMAL, SCHED_BATCH */ int32_t sched_nice; /* SCHED_FIFO, SCHED_RR */ uint32_t sched_priority; /* SCHED_DEADLINE */ uint64_t sched_runtime; uint64_t sched_deadline; uint64_t sched_period; }; int sched_setattr(pid_t pid, const struct sched_attr *attr, unsigned int flags); int sched_getattr(pid_t pid, struct sched_attr *attr, unsigned int size, unsigned int flags); #endif /* __RT_SCHED_H__ */