#include <l4_types.h>
Public Member Functions | |
L4_sched_param (Mword raw=0) | |
Create scheduling params from the binary representation. | |
Mword | is_valid () const |
Are the params valid? | |
Mword | prio () const |
Get the priority. | |
void | prio (Mword p) |
Set the priority. | |
Mword | small () const |
Get the small address space number. | |
void | small (Mword s) |
Set the small address space number. | |
Mword | mode () const |
Get the mode number. | |
void | thread_state (Mword s) |
Set the returned thread_state. | |
void | time (Unsigned64 t) |
Set the timeslice in micro seconds. | |
Unsigned64 | time () |
Get the timeslice in micro seconds. | |
Mword | time_exp () const |
Get the CPU time exponent. | |
void | time_exp (Mword e) |
Set the CPU time exponent. | |
Mword | time_man () const |
Get the CPU time mantissa. | |
void | time_man (Mword m) |
Set the mantissa of the CPU time. | |
Mword | raw () const |
Get the raw representation of the params. | |
Private Types | |
enum | { Prio_shift = 0, Prio_mask = 0x0ff, Prio_size = 8, Small_shift = Prio_size + Prio_shift, Small_size = 8, Small_mask = ((1UL << Small_size) - 1) << Small_shift, Mode_shift = Small_shift + Small_size, Mode_size = 4, Mode_mask = ((1UL << Mode_size) - 1) << Mode_shift, Time_exp_shift = Mode_shift + Mode_size, Time_exp_size = 4, Time_exp_mask = ((1UL << Time_exp_size) - 1) << Time_exp_shift, Time_man_shift = Time_exp_size + Time_exp_shift, Time_man_size = 8, Time_man_mask = ((1UL << Time_man_size) - 1) << Time_man_shift } |
Private Attributes | |
Mword | _raw |
|
|
|
Create scheduling params from the binary representation.
|
|
Are the params valid?
|
|
Get the mode number.
|
|
Set the priority.
|
|
Get the priority.
|
|
Get the raw representation of the params.
|
|
Set the small address space number.
|
|
Get the small address space number.
|
|
Set the returned thread_state.
|
|
Get the timeslice in micro seconds.
|
|
Set the timeslice in micro seconds.
|
|
Set the CPU time exponent.
|
|
Get the CPU time exponent.
|
|
Set the mantissa of the CPU time.
|
|
Get the CPU time mantissa.
|
|
|