aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@koruna.(none)>2010-07-13 13:35:41 -0400
committerGlenn Elliott <gelliott@koruna.(none)>2010-07-13 13:35:41 -0400
commit92ff5288be6a6e760b8c727965bd7e0c6eda704e (patch)
treeb6f0727cee03c5b15c280a08b2cc1cc88ab26abf /include
parente9c900fae35e4e4730469e189ff17bf30518346a (diff)
Updated liblitmus to support OMLP.wip-omlp-gedf
Diffstat (limited to 'include')
-rw-r--r--include/litmus.h9
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(
50typedef enum { 50typedef 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
55int od_openx(int fd, obj_type_t type, int obj_id, void* config); 56int od_openx(int fd, obj_type_t type, int obj_id, void* config);
@@ -68,6 +69,10 @@ int fmlp_up(int od);
68int srp_down(int od); 69int srp_down(int od);
69int srp_up(int od); 70int srp_up(int od);
70 71
72/* OMLP binary semaphore support */
73int omlp_down(int od);
74int omlp_up(int od);
75
71/* job control*/ 76/* job control*/
72int get_job_no(unsigned int* job_no); 77int get_job_no(unsigned int* job_no);
73int wait_for_job_release(unsigned int job_no); 78int 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
131static 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 */
128int null_call(cycles_t *timestamp); 137int null_call(cycles_t *timestamp);