Introduction   API Reference   Files   Index  

Scheduling parameter
[Datatypes, Defines and Macros]


Data Structures

struct  l4_sched_param_struct_t
 Scheduling parameter structure. More...
union  l4_sched_param_t
 Scheduling parameter type. More...

Defines

#define L4_INVALID_SCHED_PARAM
 Invalid scheduling parameter.
#define L4_SMALL_SPACE(size_mb, nr)
 Compute l4_sched_param_struct_t->small argument.

Functions

int l4_is_invalid_sched_param (l4_sched_param_t sp)
 Test if sp is invalid scheduling parameter.
void l4_sched_param_set_time (int us, l4_sched_param_t *p)
 Set time in scheduling parameter.

Define Documentation

#define L4_SMALL_SPACE ( size_mb,
nr   ) 

Compute l4_sched_param_struct_t->small argument.

Parameters:
size_mb Small space size (MB), possible sizes are 2, 4, 8, ... 256 megabytes
nr Small space number, valid numbers are 1 .. (512/size_mb)-1.
Compute l4_sched_param_struct_t->small argument for l4_thread_schedule(): size_mb is the size of all small address spaces, and nr is the number of the small address space. See Liedtke: ``L4 Pentium implementation''

Definition at line 323 of file ARCH-x86/L4API-l4v2/types.h.


Function Documentation

int l4_is_invalid_sched_param ( l4_sched_param_t  sp  )  [inline]

Test if sp is invalid scheduling parameter.

Parameters:
sp Scheduling parameter
Returns:
!= 0 if sp is invalid scheduling parameter, 0 if not

Definition at line 352 of file ARCH-x86/L4API-l4v2/types.h.

References l4_sched_param_t::sched_param.

void l4_sched_param_set_time ( int  us,
l4_sched_param_t p 
) [inline]

Set time in scheduling parameter.

Parameters:
us Time in micro-seconds
p Scheduling parameter

Definition at line 414 of file ARCH-x86/L4API-l4v2/types.h.

References l4_sched_param_t::sp, l4_sched_param_struct_t::time_exp, and l4_sched_param_struct_t::time_man.


Fiasco/L4 System Call C-Bindings Reference Manual,  © 1996-2008