diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/litmus.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/litmus.h b/include/litmus.h index b798c92..d343abc 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
@@ -50,6 +50,7 @@ int sporadic_task_ns( | |||
50 | typedef enum { | 50 | typedef enum { |
51 | FMLP_SEM = 0, | 51 | FMLP_SEM = 0, |
52 | SRP_SEM = 1, | 52 | SRP_SEM = 1, |
53 | OMLP_SEM = 2 | ||
53 | } obj_type_t; | 54 | } obj_type_t; |
54 | 55 | ||
55 | int od_openx(int fd, obj_type_t type, int obj_id, void* config); | 56 | int od_openx(int fd, obj_type_t type, int obj_id, void* config); |
@@ -68,6 +69,10 @@ int fmlp_up(int od); | |||
68 | int srp_down(int od); | 69 | int srp_down(int od); |
69 | int srp_up(int od); | 70 | int srp_up(int od); |
70 | 71 | ||
72 | /* OMLP binary semaphore support */ | ||
73 | int omlp_down(int od); | ||
74 | int omlp_up(int od); | ||
75 | |||
71 | /* job control*/ | 76 | /* job control*/ |
72 | int get_job_no(unsigned int* job_no); | 77 | int get_job_no(unsigned int* job_no); |
73 | int wait_for_job_release(unsigned int job_no); | 78 | int wait_for_job_release(unsigned int job_no); |
@@ -123,6 +128,10 @@ static inline int open_srp_sem(int fd, int name) | |||
123 | return od_open(fd, SRP_SEM, name); | 128 | return od_open(fd, SRP_SEM, name); |
124 | } | 129 | } |
125 | 130 | ||
131 | static inline int open_omlp_sem(int fd, int name) | ||
132 | { | ||
133 | return od_open(fd, OMLP_SEM, name); | ||
134 | } | ||
126 | 135 | ||
127 | /* syscall overhead measuring */ | 136 | /* syscall overhead measuring */ |
128 | int null_call(cycles_t *timestamp); | 137 | int null_call(cycles_t *timestamp); |