From aee0e7c1385751aa92c04b993fec570552c2669a Mon Sep 17 00:00:00 2001 From: Glenn Elliott Date: Thu, 31 Mar 2011 11:58:29 -0400 Subject: Add interface for K-FMLP. Added hooks to support K-FMLP. --- include/litmus.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/litmus.h b/include/litmus.h index 52435d8..165e9cf 100644 --- a/include/litmus.h +++ b/include/litmus.h @@ -49,7 +49,8 @@ int sporadic_task_ns( /* file descriptor attached shared objects support */ typedef enum { FMLP_SEM = 0, - SRP_SEM = 1, + KFMLP_SEM = 1, + SRP_SEM = 2, } obj_type_t; int od_openx(int fd, obj_type_t type, int obj_id, void* config); @@ -125,6 +126,10 @@ static inline int open_srp_sem(int fd, int name) return od_open(fd, SRP_SEM, name); } +static inline int open_kfmlp_sem(int fd, int name, void* arg) +{ + return od_openx(fd, KFMLP_SEM, name, arg); +} /* syscall overhead measuring */ int null_call(cycles_t *timestamp); -- cgit v1.2.2