diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-01-18 15:15:47 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-01-18 15:15:47 -0500 |
commit | cfba01b0673c5d5572c46e5d32819a60b2dbff3c (patch) | |
tree | 5a44339c4ef3d93a8f4093eb5f4b024604957fc8 /include/litmus.h | |
parent | a1035dd13b32bf6dee0794309007eb2582921d24 (diff) |
[ABI] add task_mode_transition system call
Diffstat (limited to 'include/litmus.h')
-rw-r--r-- | include/litmus.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/litmus.h b/include/litmus.h index 06f84bb..b0095e3 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
@@ -145,6 +145,16 @@ void init_litmus(void); | |||
145 | int create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, int period); | 145 | int create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, int period); |
146 | int __create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, | 146 | int __create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, |
147 | int period, task_class_t cls); | 147 | int period, task_class_t cls); |
148 | |||
149 | |||
150 | /* per-task modes */ | ||
151 | enum rt_task_mode_t { | ||
152 | BACKGROUND_TASK = 0, | ||
153 | LITMUS_RT_TASK = 1 | ||
154 | }; | ||
155 | int task_mode_transition(int target_mode); | ||
156 | |||
157 | |||
148 | const char* get_scheduler_name(spolicy scheduler); | 158 | const char* get_scheduler_name(spolicy scheduler); |
149 | void show_rt_param(rt_param_t* tp); | 159 | void show_rt_param(rt_param_t* tp); |
150 | task_class_t str2class(const char* str); | 160 | task_class_t str2class(const char* str); |