diff options
Diffstat (limited to 'include/litmus.h')
| -rw-r--r-- | include/litmus.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/litmus.h b/include/litmus.h index 78fb4f4..a95287c 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
| @@ -32,20 +32,20 @@ int get_rt_task_param(pid_t pid, struct rt_task* param); | |||
| 32 | /* times are given in ms */ | 32 | /* times are given in ms */ |
| 33 | int sporadic_task( | 33 | int sporadic_task( |
| 34 | lt_t e, lt_t p, lt_t phase, int split, | 34 | lt_t e, lt_t p, lt_t phase, int split, |
| 35 | int partition, task_class_t cls, | 35 | int partition, unsigned int priority, task_class_t cls, |
| 36 | budget_policy_t budget_policy, int set_cpu_set); | 36 | budget_policy_t budget_policy, int set_cpu_set); |
| 37 | 37 | ||
| 38 | /* times are given in ns */ | 38 | /* times are given in ns */ |
| 39 | int sporadic_task_ns( | 39 | int sporadic_task_ns( |
| 40 | lt_t e, lt_t p, lt_t phase, int split, | 40 | lt_t e, lt_t p, lt_t phase, int split, |
| 41 | int cpu, task_class_t cls, | 41 | int cpu, unsigned int priority, task_class_t cls, |
| 42 | budget_policy_t budget_policy, int set_cpu_set); | 42 | budget_policy_t budget_policy, int set_cpu_set); |
| 43 | 43 | ||
| 44 | /* budget enforcement off by default in these macros */ | 44 | /* budget enforcement off by default in these macros */ |
| 45 | #define sporadic_global(e, p) \ | 45 | #define sporadic_global(e, p) \ |
| 46 | sporadic_task(e, p, 0, 1, 0, RT_CLASS_SOFT, NO_ENFORCEMENT, 0) | 46 | sporadic_task(e, p, 0, 1, 0, 0, RT_CLASS_SOFT, NO_ENFORCEMENT, 0) |
| 47 | #define sporadic_partitioned(e, p, cpu) \ | 47 | #define sporadic_partitioned(e, p, cpu) \ |
| 48 | sporadic_task(e, p, 0, 1, cpu, RT_CLASS_SOFT, NO_ENFORCEMENT, 1) | 48 | sporadic_task(e, p, 0, 1, cpu, 0, RT_CLASS_SOFT, NO_ENFORCEMENT, 1) |
| 49 | 49 | ||
| 50 | /* file descriptor attached shared objects support */ | 50 | /* file descriptor attached shared objects support */ |
| 51 | typedef enum { | 51 | typedef enum { |
| @@ -53,6 +53,9 @@ typedef enum { | |||
| 53 | SRP_SEM = 1, | 53 | SRP_SEM = 1, |
| 54 | } obj_type_t; | 54 | } obj_type_t; |
| 55 | 55 | ||
| 56 | int lock_protocol_for_name(const char* name); | ||
| 57 | const char* name_for_lock_protocol(int id); | ||
| 58 | |||
| 56 | int od_openx(int fd, obj_type_t type, int obj_id, void* config); | 59 | int od_openx(int fd, obj_type_t type, int obj_id, void* config); |
| 57 | int od_close(int od); | 60 | int od_close(int od); |
| 58 | 61 | ||
| @@ -97,6 +100,7 @@ task_class_t str2class(const char* str); | |||
| 97 | /* non-preemptive section support */ | 100 | /* non-preemptive section support */ |
| 98 | void enter_np(void); | 101 | void enter_np(void); |
| 99 | void exit_np(void); | 102 | void exit_np(void); |
| 103 | int exit_np_trace(void); | ||
| 100 | int requested_to_preempt(void); | 104 | int requested_to_preempt(void); |
| 101 | 105 | ||
| 102 | /* task system support */ | 106 | /* task system support */ |
