diff options
Diffstat (limited to 'include/litmus.h')
-rw-r--r-- | include/litmus.h | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/include/litmus.h b/include/litmus.h index c2ca626..05f6d3c 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
@@ -47,10 +47,6 @@ typedef struct rt_param { | |||
47 | task_class_t cls; | 47 | task_class_t cls; |
48 | } rt_param_t; | 48 | } rt_param_t; |
49 | 49 | ||
50 | typedef int sema_id; /* ID of a semaphore in the Linux kernel */ | ||
51 | typedef int pi_sema_id; /* ID of a PI semaphore in the Linux kernel */ | ||
52 | typedef int srp_sema_id; /* ID of an SRP "semaphore" in the Linux kernel */ | ||
53 | |||
54 | typedef int pid_t; /* PID of a task */ | 50 | typedef int pid_t; /* PID of a task */ |
55 | 51 | ||
56 | /* X */ | 52 | /* X */ |
@@ -69,7 +65,6 @@ int set_rt_mode(int mode); | |||
69 | int set_rt_task_param(pid_t pid, rt_param_t* param); | 65 | int set_rt_task_param(pid_t pid, rt_param_t* param); |
70 | int get_rt_task_param(pid_t pid, rt_param_t* param); | 66 | int get_rt_task_param(pid_t pid, rt_param_t* param); |
71 | int prepare_rt_task(pid_t pid); | 67 | int prepare_rt_task(pid_t pid); |
72 | int sleep_next_period(void); | ||
73 | 68 | ||
74 | 69 | ||
75 | enum { | 70 | enum { |
@@ -79,18 +74,25 @@ enum { | |||
79 | int scheduler_setup(int cmd, void* param); | 74 | int scheduler_setup(int cmd, void* param); |
80 | 75 | ||
81 | 76 | ||
77 | /* file descriptor attached shared objects support */ | ||
78 | int od_open(int fd, int type, int obj_id); | ||
79 | int od_close(int od); | ||
82 | 80 | ||
83 | int pi_sema_init(void); | 81 | /* FMLP support */ |
84 | int pi_down(pi_sema_id sem_id); | 82 | int pi_down(int od); |
85 | int pi_up(pi_sema_id sem_id); | 83 | int pi_up(int od); |
86 | int pi_sema_free(pi_sema_id sem_id); | 84 | int srp_down(int od); |
87 | int srp_sema_init(void); | 85 | int srp_up(int od); |
88 | int srp_down(srp_sema_id sem_id); | 86 | int reg_task_srp_sem(int od); |
89 | int srp_up(srp_sema_id sem_id); | 87 | |
90 | int reg_task_srp_sem(srp_sema_id sem_id, pid_t t_pid); | 88 | /* job control*/ |
91 | int srp_sema_free(srp_sema_id sem_id); | ||
92 | int get_job_no(unsigned int* job_no); | 89 | int get_job_no(unsigned int* job_no); |
93 | int wait_for_job_release(unsigned int job_no); | 90 | int wait_for_job_release(unsigned int job_no); |
91 | int sleep_next_period(void); | ||
92 | |||
93 | |||
94 | |||
95 | |||
94 | 96 | ||
95 | /* library functions */ | 97 | /* library functions */ |
96 | void init_litmus(void); | 98 | void init_litmus(void); |