initcall.h File Reference

Go to the source code of this file.

Defines

#define L4_STICKY(x)   __attribute__((unused)) x
#define l4str(s)   #s
#define __l4ddekit_initcall(p)   __attribute__ ((__section__ (".l4dde_ctors." #p)))
#define DDEKIT_INITCALL(fn)   DDEKIT_CTOR(fn, 1)
 Define a function to be a DDEKit initcall.
#define DDEKIT_CTOR(fn, prio)

Typedefs

typedef void(* l4ddekit_initcall_t )(void)

Functions

void ddekit_do_initcalls (void)
 Runs all registered initcalls.


Define Documentation

#define __l4ddekit_initcall (  )     __attribute__ ((__section__ (".l4dde_ctors." #p)))

Definition at line 16 of file initcall.h.

#define DDEKIT_CTOR ( fn,
prio   ) 

Value:

static l4ddekit_initcall_t \
        L4_STICKY(__l4ddekit_initcall_##fn) \
        __l4ddekit_initcall(prio) = (void *)fn

Definition at line 32 of file initcall.h.

#define DDEKIT_INITCALL ( fn   )     DDEKIT_CTOR(fn, 1)

Define a function to be a DDEKit initcall.

Define a function to be a DDEKit initcall. This function will then be placed in a separate linker section of the binary (called .l4dde_ctors). The L4Env construction mechanism will execute all constructors in this section during application startup.

This is the right place to place Linux' module_init functions & Co.

Parameters:
fn function

Definition at line 30 of file initcall.h.

#define L4_STICKY (  )     __attribute__((unused)) x

Definition at line 8 of file initcall.h.

#define l4str ( s   )     #s

Definition at line 11 of file initcall.h.


Typedef Documentation

typedef void(* l4ddekit_initcall_t)(void)

Definition at line 14 of file initcall.h.


Function Documentation

void ddekit_do_initcalls ( void   ) 

Runs all registered initcalls.

Definition at line 5 of file initcall.c.


Generated on Wed Apr 11 06:39:15 2012 for DDE - The L4 Device Driver Environment by  doxygen 1.5.6