diff options
Diffstat (limited to 'include/litmus/fdso.h')
-rw-r--r-- | include/litmus/fdso.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/include/litmus/fdso.h b/include/litmus/fdso.h index f2115b83f1e4..1469c0fd0460 100644 --- a/include/litmus/fdso.h +++ b/include/litmus/fdso.h | |||
@@ -24,9 +24,18 @@ typedef enum { | |||
24 | MPCP_VS_SEM = 3, | 24 | MPCP_VS_SEM = 3, |
25 | DPCP_SEM = 4, | 25 | DPCP_SEM = 4, |
26 | 26 | ||
27 | PCP_SEM = 5, | 27 | PCP_SEM = 5, |
28 | 28 | ||
29 | MAX_OBJ_TYPE = 5 | 29 | RSM_MUTEX = 6, |
30 | IKGLP_SEM = 7, | ||
31 | KFMLP_SEM = 8, | ||
32 | |||
33 | IKGLP_SIMPLE_GPU_AFF_OBS = 9, | ||
34 | IKGLP_GPU_AFF_OBS = 10, | ||
35 | KFMLP_SIMPLE_GPU_AFF_OBS = 11, | ||
36 | KFMLP_GPU_AFF_OBS = 12, | ||
37 | |||
38 | MAX_OBJ_TYPE = 12 | ||
30 | } obj_type_t; | 39 | } obj_type_t; |
31 | 40 | ||
32 | struct inode_obj_id { | 41 | struct inode_obj_id { |
@@ -70,8 +79,11 @@ static inline void* od_lookup(int od, obj_type_t type) | |||
70 | } | 79 | } |
71 | 80 | ||
72 | #define lookup_fmlp_sem(od)((struct pi_semaphore*) od_lookup(od, FMLP_SEM)) | 81 | #define lookup_fmlp_sem(od)((struct pi_semaphore*) od_lookup(od, FMLP_SEM)) |
82 | #define lookup_kfmlp_sem(od)((struct pi_semaphore*) od_lookup(od, KFMLP_SEM)) | ||
73 | #define lookup_srp_sem(od) ((struct srp_semaphore*) od_lookup(od, SRP_SEM)) | 83 | #define lookup_srp_sem(od) ((struct srp_semaphore*) od_lookup(od, SRP_SEM)) |
74 | #define lookup_ics(od) ((struct ics*) od_lookup(od, ICS_ID)) | 84 | #define lookup_ics(od) ((struct ics*) od_lookup(od, ICS_ID)) |
75 | 85 | ||
86 | #define lookup_rsm_mutex(od)((struct litmus_lock*) od_lookup(od, FMLP_SEM)) | ||
87 | |||
76 | 88 | ||
77 | #endif | 89 | #endif |