aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/litmus.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/litmus.h b/include/litmus.h
index d45cbd0..035d1c3 100644
--- a/include/litmus.h
+++ b/include/litmus.h
@@ -66,7 +66,8 @@ int litmus_lock(int od);
66int litmus_unlock(int od); 66int litmus_unlock(int od);
67 67
68/* nvidia graphics cards */ 68/* nvidia graphics cards */
69int register_nv_device(pid_t pid, int nv_device_id); 69int register_nv_device(int nv_device_id);
70int unregister_nv_device(int nv_device_id);
70 71
71/* job control*/ 72/* job control*/
72int get_job_no(unsigned int* job_no); 73int get_job_no(unsigned int* job_no);
@@ -124,16 +125,17 @@ static inline int open_fmlp_sem(int fd, int name)
124 return od_open(fd, FMLP_SEM, name); 125 return od_open(fd, FMLP_SEM, name);
125} 126}
126 127
127static inline int open_srp_sem(int fd, int name) 128static inline int open_kfmlp_sem(int fd, int name, void* arg)
128{ 129{
129 return od_open(fd, SRP_SEM, name); 130 return od_openx(fd, KFMLP_SEM, name, arg);
130} 131}
131 132
132static inline int open_kfmlp_sem(int fd, int name, void* arg) 133static inline int open_srp_sem(int fd, int name)
133{ 134{
134 return od_openx(fd, KFMLP_SEM, name, arg); 135 return od_open(fd, SRP_SEM, name);
135} 136}
136 137
138
137/* syscall overhead measuring */ 139/* syscall overhead measuring */
138int null_call(cycles_t *timestamp); 140int null_call(cycles_t *timestamp);
139 141