diff options
-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 | } | ||