aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus/fdso.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/litmus/fdso.h')
-rw-r--r--include/litmus/fdso.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/litmus/fdso.h b/include/litmus/fdso.h
index b0e62a9098bd..4c67c87d0e1b 100644
--- a/include/litmus/fdso.h
+++ b/include/litmus/fdso.h
@@ -19,8 +19,9 @@ typedef enum {
19 19
20 FMLP_SEM = 0, 20 FMLP_SEM = 0,
21 SRP_SEM = 1, 21 SRP_SEM = 1,
22 OMLP_SEM = 2,
22 23
23 MAX_OBJ_TYPE = 1 24 MAX_OBJ_TYPE = 2
24} obj_type_t; 25} obj_type_t;
25 26
26struct inode_obj_id { 27struct inode_obj_id {
@@ -64,6 +65,7 @@ static inline void* od_lookup(int od, obj_type_t type)
64 65
65#define lookup_fmlp_sem(od)((struct fmlp_semaphore*) od_lookup(od, FMLP_SEM)) 66#define lookup_fmlp_sem(od)((struct fmlp_semaphore*) od_lookup(od, FMLP_SEM))
66#define lookup_srp_sem(od) ((struct srp_semaphore*) od_lookup(od, SRP_SEM)) 67#define lookup_srp_sem(od) ((struct srp_semaphore*) od_lookup(od, SRP_SEM))
68#define lookup_omlp_sem(od)((struct omlp_semaphore*) od_lookup(od, OMLP_SEM))
67#define lookup_ics(od) ((struct ics*) od_lookup(od, ICS_ID)) 69#define lookup_ics(od) ((struct ics*) od_lookup(od, ICS_ID))
68 70
69 71