rres_init.c File Reference

Initialization and cleanup of the RRES scheduling engine. More...

#include "kal_generic.h"
#include "rres_config.h"
#include "qos_debug.h"
#include "rres.h"
#include "rres_hooks.h"
#include "kal_sched.h"
#include <linux/aquosa/rres_config.h>
#include <linux/version.h>
#include <linux/utsrelease.h>

Go to the source code of this file.

Defines

#define module_init(func)   int main_func(void) { return func(); }
#define module_exit(x)
#define MODULE_LICENSE(x)
#define QOS_DEBUG_LEVEL   RRES_MOD_DEBUG_LEVEL

Functions

int rres_init_module (void)
 Perform RRES initialization.
void rres_cleanup_module (void)
 Perform RRES cleanup.
 module_init (rres_init_module)
 module_exit (rres_cleanup_module)
 MODULE_LICENSE ("GPL")
 MODULE_AUTHOR ("ReTiS Lab")
 MODULE_DESCRIPTION ("AQuoSA Resource Reservation - Core CPU Scheduler")

Variables

int rres_mod_removed = 0
 This has been kept for debug, to be sure that already programmed timers do not fire during module removal.

Detailed Description

Initialization and cleanup of the RRES scheduling engine.

Note:
In order to protect the RRESMOD data structures, a distinct spinlock is used than for protecting the hooks table (hook_lock). This avoids a BUG notification by the kernel spinlock recursion detection mechanism, that would be triggered because some hooks are invoked with the hook_lock held.

Definition in file rres_init.c.


Define Documentation

#define module_exit (  ) 

Definition at line 35 of file rres_init.c.

#define module_init ( func   )     int main_func(void) { return func(); }

Definition at line 34 of file rres_init.c.

#define MODULE_LICENSE (  ) 

Definition at line 36 of file rres_init.c.

#define QOS_DEBUG_LEVEL   RRES_MOD_DEBUG_LEVEL

Definition at line 40 of file rres_init.c.


Function Documentation

MODULE_AUTHOR ( "ReTiS Lab"   ) 
MODULE_DESCRIPTION ( "AQuoSA Resource Reservation - Core CPU Scheduler"   ) 
module_exit ( rres_cleanup_module   ) 
module_init ( rres_init_module   ) 
MODULE_LICENSE ( "GPL"   ) 

Variable Documentation

This has been kept for debug, to be sure that already programmed timers do not fire during module removal.

Definition at line 65 of file rres_init.c.

Referenced by rres_cleanup_module().

Generated on Mon Aug 2 22:39:17 2010 for qosres by  doxygen 1.6.3