Download TimeSys Linux/RT User`s Manual
Transcript
Chapter 5: Programming With TimeSys Linux/RT Currently, TimeSys Linux/RT supports RSV_HARD and RSV_SOFT. - RSV_HARD: guaranteed to receive the specified amount on success - RSV_SOFT: guaranteed to receive the specified amount on success. If resource is still available after using up guaranteed amount, it will compete against unreserved tasks for more CPU time. cpu_reserve_ctl(rk_resource_set_t rs, cpu_reserve_attr_t cpu_attr) Changes the properties of existing CPU reservations (computation time, period, deadline, blocking time and enforcement mode.) rk_cpu_reserve_delete(rk_resource_set_t rs); Deletes the CPU reserve associated with a resource set. rk_cpu_reserves_get_scheduling_policy(void); Returns the scheduling policy used to schedule CPU reserves. The policy can either be RATE_MONOTONIC or DEADLINE_MONOTONIC. rk_cpu_reserves_set_scheduling_policy(int icy); pol- Sets the scheduling policy used to schedule CPU reserves. The policy can either be RATE_MONOTONIC or DEADLINE_MONOTONIC. rk_cpu_reserves_get_num(void); Returns the number of CPU reserves currently in the system. rk_cpu_reserves_get_list(rk_reserve_t int count); *rsv, Returns the list of CPU reserves in the system. rk_cpu_reserve_get_attr(rk_reserve_t cpu_reserve_attr_t attr); rsv, 61