Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
dynamic_loader.h File Reference
#include <linux/kernel.h>
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  dynamic_loader_stream
 
struct  dynload_symbol
 
struct  dynamic_loader_sym
 
struct  ldr_section_info
 
struct  dynamic_loader_allocate
 
struct  dynamic_loader_initialize
 

Macros

#define DLOAD_INITBSS   0x1 /* initialize BSS sections to zero */
 
#define DLOAD_SECTION_TYPE(typeinfo)   (typeinfo & 0xF)
 
#define DLOAD_TEXT   0
 
#define DLOAD_DATA   1
 
#define DLOAD_BSS   2
 
#define DLOAD_CINIT   3
 

Typedefs

typedef u32 ldr_addr
 

Functions

int dynamic_load_module (struct dynamic_loader_stream *module, struct dynamic_loader_sym *syms, struct dynamic_loader_allocate *alloc, struct dynamic_loader_initialize *init, unsigned options, void **mhandle)
 
int dynamic_open_module (struct dynamic_loader_stream *module, struct dynamic_loader_sym *syms, struct dynamic_loader_allocate *alloc, struct dynamic_loader_initialize *init, unsigned options, void **mhandle)
 
int dynamic_unload_module (void *mhandle, struct dynamic_loader_sym *syms, struct dynamic_loader_allocate *alloc, struct dynamic_loader_initialize *init)
 

Macro Definition Documentation

#define DLOAD_BSS   2

Definition at line 336 of file dynamic_loader.h.

#define DLOAD_CINIT   3

Definition at line 338 of file dynamic_loader.h.

#define DLOAD_DATA   1

Definition at line 335 of file dynamic_loader.h.

#define DLOAD_INITBSS   0x1 /* initialize BSS sections to zero */

Definition at line 48 of file dynamic_loader.h.

#define DLOAD_SECTION_TYPE (   typeinfo)    (typeinfo & 0xF)

Definition at line 331 of file dynamic_loader.h.

#define DLOAD_TEXT   0

Definition at line 334 of file dynamic_loader.h.

Typedef Documentation

typedef u32 ldr_addr

Definition at line 202 of file dynamic_loader.h.

Function Documentation

int dynamic_load_module ( struct dynamic_loader_stream module,
struct dynamic_loader_sym syms,
struct dynamic_loader_allocate alloc,
struct dynamic_loader_initialize init,
unsigned  options,
void **  mhandle 
)

Definition at line 120 of file cload.c.

int dynamic_open_module ( struct dynamic_loader_stream module,
struct dynamic_loader_sym syms,
struct dynamic_loader_allocate alloc,
struct dynamic_loader_initialize init,
unsigned  options,
void **  mhandle 
)

Definition at line 229 of file cload.c.

int dynamic_unload_module ( void mhandle,
struct dynamic_loader_sym syms,
struct dynamic_loader_allocate alloc,
struct dynamic_loader_initialize init 
)

Definition at line 1797 of file cload.c.