Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

L4_sched_param Class Reference

L4 Scheduling Parameters. More...

#include <l4_types.h>

List of all members.

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


Detailed Description

L4 Scheduling Parameters.


Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
Prio_shift 
Prio_mask 
Prio_size 
Small_shift 
Small_size 
Small_mask 
Mode_shift 
Mode_size 
Mode_mask 
Time_exp_shift 
Time_exp_size 
Time_exp_mask 
Time_man_shift 
Time_man_size 
Time_man_mask 


Constructor & Destructor Documentation

L4_sched_param::L4_sched_param Mword  raw = 0  )  [inline]
 

Create scheduling params from the binary representation.


Member Function Documentation

Mword L4_sched_param::is_valid  )  const [inline]
 

Are the params valid?

Returns:
true if the raw prepresentation is not (Mword)-1.

Mword L4_sched_param::mode  )  const [inline]
 

Get the mode number.

Returns:
The mode number.

void L4_sched_param::prio Mword  p  )  [inline]
 

Set the priority.

Parameters:
p the new static priority.

Mword L4_sched_param::prio  )  const [inline]
 

Get the priority.

Returns:
The static priority.

Mword L4_sched_param::raw  )  const [inline]
 

Get the raw representation of the params.

Returns:
The binary representation of the params.

void L4_sched_param::small Mword  s  )  [inline]
 

Set the small address space number.

Parameters:
s the new small address space number.

Mword L4_sched_param::small  )  const [inline]
 

Get the small address space number.

Returns:
The small address space number.

void L4_sched_param::thread_state Mword  s  )  [inline]
 

Set the returned thread_state.

Parameters:
s the new returned thread_state.

Unsigned64 L4_sched_param::time  )  [inline]
 

Get the timeslice in micro seconds.

Returns:
The timeslice in micro seconds.
See also:
time_exp(), time_man()

void L4_sched_param::time Unsigned64  t  )  [inline]
 

Set the timeslice in micro seconds.

Parameters:
t the new timeslice in micro seconds.
See also:
time_exp(), time_man()

void L4_sched_param::time_exp Mword  e  )  [inline]
 

Set the CPU time exponent.

Parameters:
e the new CPU time exponent.
See also:
time()

Mword L4_sched_param::time_exp  )  const [inline]
 

Get the CPU time exponent.

Returns:
The exponent of the CPU time.
See also:
time()

void L4_sched_param::time_man Mword  m  )  [inline]
 

Set the mantissa of the CPU time.

Parameters:
m the new mantissa of the CPU time.
See also:
time()

Mword L4_sched_param::time_man  )  const [inline]
 

Get the CPU time mantissa.

Returns:
The mantissa of the CPU time.
See also:
time()


Member Data Documentation

Mword L4_sched_param::_raw [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Sep 26 14:20:16 2005 for Fiasco by  doxygen 1.4.2