aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/litmus.h')
-rw-r--r--include/litmus.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/litmus.h b/include/litmus.h
index 3fa2a57..1943146 100644
--- a/include/litmus.h
+++ b/include/litmus.h
@@ -66,7 +66,8 @@ typedef enum {
66 MPCP_SEM = 2, 66 MPCP_SEM = 2,
67 MPCP_VS_SEM = 3, 67 MPCP_VS_SEM = 3,
68 DPCP_SEM = 4, 68 DPCP_SEM = 4,
69 PCP_SEM = 5, 69 PCP_SEM = 5,
70 DGL_SEM = 6,
70} obj_type_t; 71} obj_type_t;
71 72
72int lock_protocol_for_name(const char* name); 73int lock_protocol_for_name(const char* name);
@@ -141,6 +142,11 @@ static inline int open_fmlp_sem(int fd, int name)
141 return od_open(fd, FMLP_SEM, name); 142 return od_open(fd, FMLP_SEM, name);
142} 143}
143 144
145static inline int open_dgl_sem(int fd, int name)
146{
147 return od_open(fd, DGL_SEM, name);
148}
149
144static inline int open_srp_sem(int fd, int name) 150static inline int open_srp_sem(int fd, int name)
145{ 151{
146 return od_open(fd, SRP_SEM, name); 152 return od_open(fd, SRP_SEM, name);