Download TimeSys Linux/RT User`s Manual

Transcript
TimeSys Linux/RT User’s Guide
Œ
rk_reserve_t
rk_resource_set_get_cpu_rsv(rk_resource_set_t
rs);
Returns the CPU reserve (if any) attached to a resource
set.
Œ
rk_reserve_t
pid);
rk_proc_get_resource_set(pid_t
Returns the resource set (if any) attached to a process.
Œ
rk_resource_sets_get_num(void);
Returns the number of resource sets currently in the
system.
Œ
rk_resource_sets_get_list(rk_resource_set_
t *rs, int count);
Returns the list of resource sets in the system.
Œ
rk_resource_set_t
pid)
rk_proc_get_rset(pid_t
Returns the resource set to which the process specified by pid is attached to.
Œ
rk_resource_set_get_num_procs(rk_resource_
set_t rs)
Returns the number of processes attached to a resource set.
Œ
rk_resource_set_get_proclist(rk_resource_s
et_t rs, pid_t *procs);
Returns the list of processes attached to a resource
set.
Œ
rk_reserve_t
rk_cpu_reserve_create(rk_resource_set_t
rs, cpu_reserve_attr_t attr);
Creates a CPU reservation and attaches to resource
set rs. The amount of CPU reservation is specified
with struct cpu_reserve_attr (defined in <rk/rk.h>).
It permits the definition of computation time (C),
period (T), deadline (D), blocking time (B, typically
0), and enforcement mode (hard, or soft).
60