granularity.c File Reference

CPU timeslice granularity functions. More...

Go to the source code of this file.

Functions

static int granularity_init (void)
 Obtain the timer granularity from the kip.
int granularity (void)
 Return scheduling granularity.
int granularity_roundup (unsigned time)
 Round time up to the next kernel-supported granularity.

Variables

static int kernel_granularity


Detailed Description

CPU timeslice granularity functions.

Date:
09/14/2004
Author:
Jork Loeser <jork.loeser@inf.tu-dresden.de>

Definition in file granularity.c.


Function Documentation

int granularity ( void   ) 

Return scheduling granularity.

Definition at line 36 of file granularity.c.

References granularity_init(), and kernel_granularity.

Referenced by main().

static int granularity_init ( void   )  [static]

Obtain the timer granularity from the kip.

Return values:
0 ok
!0 error

Definition at line 24 of file granularity.c.

References kernel_granularity.

Referenced by granularity(), and granularity_roundup().

int granularity_roundup ( unsigned  time  ) 

Round time up to the next kernel-supported granularity.

Return values:
0 some error occured
>0 OK

Definition at line 46 of file granularity.c.

References granularity_init(), and kernel_granularity.

Referenced by l4cpu_reserve_add_component(), and l4cpu_reserve_change_component().


Variable Documentation

int kernel_granularity [static]

Definition at line 18 of file granularity.c.

Referenced by granularity(), granularity_init(), and granularity_roundup().


CPU reservation server Reference Manual, written by Jork Loeser  © 2004