aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus/aux_tasks.h
blob: 87745c1c0df0cc3337e9803dabf5996d6ba73880 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef LITMUS_AUX_taskS
#define LITMUS_AUX_taskS

struct task_struct;

/* admit an aux task with default parameters */
//int admit_aux_task(struct task_struct *t);

int make_aux_task_if_required(struct task_struct *t);

/* call on an aux task when it exits real-time */
int exit_aux_task(struct task_struct *t);

/* call when an aux_owner becomes real-time */
long enable_aux_task_owner(struct task_struct *t);

/* call when an aux_owner exits real-time */
long disable_aux_task_owner(struct task_struct *t);


/* collectivelly make all aux tasks in the process of leader inherit from hp */
//int aux_tasks_increase_priority(struct task_struct *leader, struct task_struct *hp);

/* collectivelly make all aux tasks in the process of leader inherit from hp */
//int aux_tasks_decrease_priority(struct task_struct *leader, struct task_struct *hp);

/* call when an aux_owner increases its priority */
int aux_task_owner_increase_priority(struct task_struct *t);

/* call when an aux_owner decreases its priority */
int aux_task_owner_decrease_priority(struct task_struct *t);

#endif