diff options
| author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-05-01 12:56:59 -0400 |
|---|---|---|
| committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-05-01 12:56:59 -0400 |
| commit | eddde9f7fd0442ad2c097988845b9f0e451dbd2f (patch) | |
| tree | 2a67dc53900ad5bffe4ecf346a7ab067a374cab7 | |
| parent | 117de7edd6eec435e01a0f734e3d10b2ba5c5db3 (diff) | |
API change: PI->FMLP
| -rw-r--r-- | include/litmus.h | 6 | ||||
| -rw-r--r-- | src/syscalls.c | 13 |
2 files changed, 7 insertions, 12 deletions
diff --git a/include/litmus.h b/include/litmus.h index 5c50204..1b0d006 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
| @@ -24,7 +24,7 @@ int sporadic_task(lt_t e, lt_t p, lt_t phase, | |||
| 24 | 24 | ||
| 25 | /* file descriptor attached shared objects support */ | 25 | /* file descriptor attached shared objects support */ |
| 26 | typedef enum { | 26 | typedef enum { |
| 27 | PI_SEM = 0, | 27 | FMLP_SEM = 0, |
| 28 | SRP_SEM = 1, | 28 | SRP_SEM = 1, |
| 29 | } obj_type_t; | 29 | } obj_type_t; |
| 30 | 30 | ||
| @@ -37,8 +37,8 @@ static inline int od_open(int fd, obj_type_t type, int obj_id) | |||
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | /* FMLP support */ | 39 | /* FMLP support */ |
| 40 | int pi_down(int od); | 40 | int fmlp_down(int od); |
| 41 | int pi_up(int od); | 41 | int fmlp_up(int od); |
| 42 | int srp_down(int od); | 42 | int srp_down(int od); |
| 43 | int srp_up(int od); | 43 | int srp_up(int od); |
| 44 | int reg_task_srp_sem(int od); | 44 | int reg_task_srp_sem(int od); |
diff --git a/src/syscalls.c b/src/syscalls.c index 625d8b6..bc14443 100644 --- a/src/syscalls.c +++ b/src/syscalls.c | |||
| @@ -52,14 +52,14 @@ int od_close(int od) | |||
| 52 | return syscall(__NR_od_close, od); | 52 | return syscall(__NR_od_close, od); |
| 53 | } | 53 | } |
| 54 | 54 | ||
| 55 | int pi_down(int od) | 55 | int fmlp_down(int od) |
| 56 | { | 56 | { |
| 57 | return syscall(__NR_pi_down, od); | 57 | return syscall(__NR_fmlp_down, od); |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | int pi_up(int od) | 60 | int fmlp_up(int od) |
| 61 | { | 61 | { |
| 62 | return syscall(__NR_pi_up, od); | 62 | return syscall(__NR_fmlp_up, od); |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | int srp_down(int od) | 65 | int srp_down(int od) |
| @@ -72,11 +72,6 @@ int srp_up(int od) | |||
| 72 | return syscall(__NR_srp_up, od); | 72 | return syscall(__NR_srp_up, od); |
| 73 | } | 73 | } |
| 74 | 74 | ||
| 75 | int reg_task_srp_sem(int od) | ||
| 76 | { | ||
| 77 | return syscall(__NR_reg_task_srp_sem, od); | ||
| 78 | } | ||
| 79 | |||
| 80 | int get_job_no(unsigned int *job_no) | 75 | int get_job_no(unsigned int *job_no) |
| 81 | { | 76 | { |
| 82 | return syscall(__NR_query_job_no, job_no); | 77 | return syscall(__NR_query_job_no, job_no); |
