diff options
-rw-r--r-- | include/litmus.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/litmus.h b/include/litmus.h index a1ee59f..d45cbd0 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
@@ -49,7 +49,8 @@ int sporadic_task_ns( | |||
49 | /* file descriptor attached shared objects support */ | 49 | /* file descriptor attached shared objects support */ |
50 | typedef enum { | 50 | typedef enum { |
51 | FMLP_SEM = 0, | 51 | FMLP_SEM = 0, |
52 | SRP_SEM = 1, | 52 | KFMLP_SEM = 1, |
53 | SRP_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); |
@@ -128,6 +129,10 @@ static inline int open_srp_sem(int fd, int name) | |||
128 | return od_open(fd, SRP_SEM, name); | 129 | return od_open(fd, SRP_SEM, name); |
129 | } | 130 | } |
130 | 131 | ||
132 | static inline int open_kfmlp_sem(int fd, int name, void* arg) | ||
133 | { | ||
134 | return od_openx(fd, KFMLP_SEM, name, arg); | ||
135 | } | ||
131 | 136 | ||
132 | /* syscall overhead measuring */ | 137 | /* syscall overhead measuring */ |
133 | int null_call(cycles_t *timestamp); | 138 | int null_call(cycles_t *timestamp); |