diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2014-07-17 12:01:42 -0400 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2014-07-17 12:01:42 -0400 |
commit | a83d1f59605a06fc22b399b38ce4b831d38b6442 (patch) | |
tree | e0ed508aee6f20f52050584d0bc7e8b0349288e9 | |
parent | 54ab0e29794e9f22aacd206102d9e4d643e28efe (diff) |
Add reservation-related system calls
-rw-r--r-- | include/litmus.h | 5 | ||||
-rw-r--r-- | src/syscalls.c | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/include/litmus.h b/include/litmus.h index f99ccec..3bd6b92 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
@@ -416,6 +416,11 @@ int null_call(cycles_t *timestamp); | |||
416 | */ | 416 | */ |
417 | struct control_page* get_ctrl_page(void); | 417 | struct control_page* get_ctrl_page(void); |
418 | 418 | ||
419 | int reservation_create(int rtype, void *config); | ||
420 | |||
421 | int reservation_destroy(unsigned int reservation_id, int cpu); | ||
422 | |||
423 | |||
419 | #ifdef __cplusplus | 424 | #ifdef __cplusplus |
420 | } | 425 | } |
421 | #endif | 426 | #endif |
diff --git a/src/syscalls.c b/src/syscalls.c index c68f15b..fbb8604 100644 --- a/src/syscalls.c +++ b/src/syscalls.c | |||
@@ -86,3 +86,13 @@ int null_call(cycles_t *timestamp) | |||
86 | { | 86 | { |
87 | return syscall(__NR_null_call, timestamp); | 87 | return syscall(__NR_null_call, timestamp); |
88 | } | 88 | } |
89 | |||
90 | int reservation_create(int rtype, void *config) | ||
91 | { | ||
92 | return syscall(__NR_reservation_create, rtype, config); | ||
93 | } | ||
94 | |||
95 | int reservation_destroy(unsigned int reservation_id, int cpu) | ||
96 | { | ||
97 | return syscall(__NR_reservation_destroy, reservation_id, cpu); | ||
98 | } | ||