diff options
| author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2007-11-15 22:39:59 -0500 |
|---|---|---|
| committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2007-11-15 22:39:59 -0500 |
| commit | d5e648be51bbcab442199c64fadd35c935c81620 (patch) | |
| tree | 8128ae3704009106a2439ed4f30a7d52f529d259 | |
| parent | 0ba99fc3d11337493d81828357f70ec24da9443e (diff) | |
FDSO: make types available to user space
| -rw-r--r-- | include/litmus.h | 8 | ||||
| -rw-r--r-- | src/litmus.c | 2 |
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 */ |
| 78 | int od_open(int fd, int type, int obj_id); | 78 | |
| 79 | typedef enum { | ||
| 80 | PI_SEM = 0, | ||
| 81 | SRP_SEM = 1, | ||
| 82 | ICS_ID = 2, | ||
| 83 | } obj_type_t; | ||
| 84 | int od_open(int fd, obj_type_t type, int obj_id); | ||
| 79 | int od_close(int od); | 85 | int 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); |
