aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2007-11-15 22:39:59 -0500
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2007-11-15 22:39:59 -0500
commitd5e648be51bbcab442199c64fadd35c935c81620 (patch)
tree8128ae3704009106a2439ed4f30a7d52f529d259
parent0ba99fc3d11337493d81828357f70ec24da9443e (diff)
FDSO: make types available to user space
-rw-r--r--include/litmus.h8
-rw-r--r--src/litmus.c2
2 files changed, 8 insertions, 2 deletions
diff --git a/include/litmus.h b/include/litmus.h
index 05f6d3c..2aac46f 100644
--- a/include/litmus.h
+++ b/include/litmus.h
@@ -75,7 +75,13 @@ int scheduler_setup(int cmd, void* param);
75 75
76 76
77/* file descriptor attached shared objects support */ 77/* file descriptor attached shared objects support */
78int od_open(int fd, int type, int obj_id); 78
79typedef enum {
80 PI_SEM = 0,
81 SRP_SEM = 1,
82 ICS_ID = 2,
83} obj_type_t;
84int od_open(int fd, obj_type_t type, int obj_id);
79int od_close(int od); 85int od_close(int od);
80 86
81/* FMLP support */ 87/* FMLP support */
diff --git a/src/litmus.c b/src/litmus.c
index 01acf73..fe01e0e 100644
--- a/src/litmus.c
+++ b/src/litmus.c
@@ -326,7 +326,7 @@ _syscall2(int, scheduler_setup, int, cmd, void*, param);
326_syscall1(int, register_np_flag, struct np_flag*, flag); 326_syscall1(int, register_np_flag, struct np_flag*, flag);
327_syscall0(int, signal_exit_np); 327_syscall0(int, signal_exit_np);
328 328
329_syscall3(int, od_open, int, fd, int, type, int, obj_id); 329_syscall3(int, od_open, int, fd, obj_type_t, type, int, obj_id);
330_syscall1(int, od_close, int, od); 330_syscall1(int, od_close, int, od);
331_syscall1(int, pi_down, int, od); 331_syscall1(int, pi_down, int, od);
332_syscall1(int, pi_up, int, od); 332_syscall1(int, pi_up, int, od);