Xenomai API  2.5.6.1
include/nucleus/schedparam.h
00001 /*
00002  * Copyright (C) 2008 Philippe Gerum <[email protected]>.
00003  *
00004  * Xenomai is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License as published
00006  * by the Free Software Foundation; either version 2 of the License,
00007  * or (at your option) any later version.
00008  *
00009  * Xenomai is distributed in the hope that it will be useful, but
00010  * WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with Xenomai; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00017  * 02111-1307, USA.
00018  */
00019 
00020 #ifndef _XENO_NUCLEUS_SCHEDPARAM_H
00021 #define _XENO_NUCLEUS_SCHEDPARAM_H
00022 
00023 struct xnsched_idle_param {
00024         int prio;
00025 };
00026 
00027 struct xnsched_rt_param {
00028         int prio;
00029 };
00030 
00031 struct xnsched_tp_param {
00032         int prio;
00033         int ptid;       /* partition id. */
00034 };
00035 
00036 struct xnsched_sporadic_param {
00037         xntime_t init_budget;
00038         xntime_t repl_period;
00039         int max_repl;
00040         int low_prio;
00041         int normal_prio;
00042         int current_prio;
00043 };
00044 
00045 union xnsched_policy_param {
00046         struct xnsched_idle_param idle;
00047         struct xnsched_rt_param rt;
00048 #ifdef CONFIG_XENO_OPT_SCHED_TP
00049         struct xnsched_tp_param tp;
00050 #endif
00051 #ifdef CONFIG_XENO_OPT_SCHED_SPORADIC
00052         struct xnsched_sporadic_param pss;
00053 #endif
00054 };
00055 
00056 #endif /* !_XENO_NUCLEUS_SCHEDPARAM_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines