diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-01-29 14:53:21 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-02-03 17:40:16 -0500 |
commit | c4128b99e1206d03d15c5d2e1b6af164bf261c40 (patch) | |
tree | 80e092481285313e1f284bd03d1a0a03ea1f28a0 /src/syscalls.c | |
parent | 86b445e39c3c7eed076b01795b17f34481517288 (diff) |
switch to generic locking system calls
The new generic lock layer in LITMUS^RT does away with per-protocol
system calls. Change accordingly.
Diffstat (limited to 'src/syscalls.c')
-rw-r--r-- | src/syscalls.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/syscalls.c b/src/syscalls.c index c738ac4..d800141 100644 --- a/src/syscalls.c +++ b/src/syscalls.c | |||
@@ -44,24 +44,14 @@ int od_close(int od) | |||
44 | return syscall(__NR_od_close, od); | 44 | return syscall(__NR_od_close, od); |
45 | } | 45 | } |
46 | 46 | ||
47 | int fmlp_down(int od) | 47 | int litmus_lock(int od) |
48 | { | 48 | { |
49 | return syscall(__NR_fmlp_down, od); | 49 | return syscall(__NR_litmus_lock, od); |
50 | } | 50 | } |
51 | 51 | ||
52 | int fmlp_up(int od) | 52 | int litmus_unlock(int od) |
53 | { | 53 | { |
54 | return syscall(__NR_fmlp_up, od); | 54 | return syscall(__NR_litmus_unlock, od); |
55 | } | ||
56 | |||
57 | int srp_down(int od) | ||
58 | { | ||
59 | return syscall(__NR_srp_down, od); | ||
60 | } | ||
61 | |||
62 | int srp_up(int od) | ||
63 | { | ||
64 | return syscall(__NR_srp_up, od); | ||
65 | } | 55 | } |
66 | 56 | ||
67 | int get_job_no(unsigned int *job_no) | 57 | int get_job_no(unsigned int *job_no) |