aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/litmus.h')
-rw-r--r--include/litmus.h30
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
50typedef int sema_id; /* ID of a semaphore in the Linux kernel */
51typedef int pi_sema_id; /* ID of a PI semaphore in the Linux kernel */
52typedef int srp_sema_id; /* ID of an SRP "semaphore" in the Linux kernel */
53
54typedef int pid_t; /* PID of a task */ 50typedef int pid_t; /* PID of a task */
55 51
56/* X */ 52/* X */
@@ -69,7 +65,6 @@ int set_rt_mode(int mode);
69int set_rt_task_param(pid_t pid, rt_param_t* param); 65int set_rt_task_param(pid_t pid, rt_param_t* param);
70int get_rt_task_param(pid_t pid, rt_param_t* param); 66int get_rt_task_param(pid_t pid, rt_param_t* param);
71int prepare_rt_task(pid_t pid); 67int prepare_rt_task(pid_t pid);
72int sleep_next_period(void);
73 68
74 69
75enum { 70enum {
@@ -79,18 +74,25 @@ enum {
79int scheduler_setup(int cmd, void* param); 74int scheduler_setup(int cmd, void* param);
80 75
81 76
77/* file descriptor attached shared objects support */
78int od_open(int fd, int type, int obj_id);
79int od_close(int od);
82 80
83int pi_sema_init(void); 81/* FMLP support */
84int pi_down(pi_sema_id sem_id); 82int pi_down(int od);
85int pi_up(pi_sema_id sem_id); 83int pi_up(int od);
86int pi_sema_free(pi_sema_id sem_id); 84int srp_down(int od);
87int srp_sema_init(void); 85int srp_up(int od);
88int srp_down(srp_sema_id sem_id); 86int reg_task_srp_sem(int od);
89int srp_up(srp_sema_id sem_id); 87
90int reg_task_srp_sem(srp_sema_id sem_id, pid_t t_pid); 88/* job control*/
91int srp_sema_free(srp_sema_id sem_id);
92int get_job_no(unsigned int* job_no); 89int get_job_no(unsigned int* job_no);
93int wait_for_job_release(unsigned int job_no); 90int wait_for_job_release(unsigned int job_no);
91int sleep_next_period(void);
92
93
94
95
94 96
95/* library functions */ 97/* library functions */
96void init_litmus(void); 98void init_litmus(void);