Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
cload.c File Reference
#include <linux/slab.h>
#include "header.h"
#include "module_list.h"

Go to the source code of this file.

Data Structures

struct  img_buffer
 

Macros

#define LINKER_MODULES_HEADER   ("_" MODULES_HEADER)
 
#define DL_ERROR(zza, zzb)   dload_error(dlthis, zza, zzb)
 
#define COMBINED_HEADER_SIZE
 
#define DBG_HDR_SIZE   (sizeof(struct dll_module) - sizeof(struct dll_sect))
 
#define MY_SYM_BUF_SIZ
 
#define MY_RELOC_BUF_SIZ   8
 
#define IPH_SIZE   (sizeof(struct image_packet_t) - sizeof(u32))
 
#define SHIFT_COUNT_MASK   (3 << LOG_BITS_PER_BYTE)
 

Functions

void dload_error (struct dload_state *dlthis, const char *errtxt,...)
 
void dload_syms_error (struct dynamic_loader_sym *syms, const char *errtxt,...)
 
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)
 
void dload_headers (struct dload_state *dlthis)
 
void dload_sections (struct dload_state *dlthis)
 
void dload_strings (struct dload_state *dlthis, bool sec_names_only)
 
void dload_reorder (void *data, int dsiz, unsigned int map)
 
u32 dload_checksum (void *data, unsigned siz)
 
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 COMBINED_HEADER_SIZE
Value:

Definition at line 318 of file cload.c.

#define DBG_HDR_SIZE   (sizeof(struct dll_module) - sizeof(struct dll_sect))

Definition at line 685 of file cload.c.

#define DL_ERROR (   zza,
  zzb 
)    dload_error(dlthis, zza, zzb)

Definition at line 74 of file cload.c.

#define IPH_SIZE   (sizeof(struct image_packet_t) - sizeof(u32))

Definition at line 1125 of file cload.c.

#define LINKER_MODULES_HEADER   ("_" MODULES_HEADER)

Definition at line 22 of file cload.c.

#define MY_RELOC_BUF_SIZ   8

Definition at line 1078 of file cload.c.

#define MY_SYM_BUF_SIZ
Value:

Definition at line 701 of file cload.c.

#define SHIFT_COUNT_MASK   (3 << LOG_BITS_PER_BYTE)

Definition at line 1373 of file cload.c.

Function Documentation

u32 dload_checksum ( void data,
unsigned  siz 
)

Definition at line 1404 of file cload.c.

void dload_error ( struct dload_state dlthis,
const char errtxt,
  ... 
)

Definition at line 63 of file cload.c.

void dload_headers ( struct dload_state dlthis)

Definition at line 321 of file cload.c.

void dload_reorder ( void data,
int  dsiz,
unsigned int  map 
)

Definition at line 1375 of file cload.c.

void dload_sections ( struct dload_state dlthis)

Definition at line 428 of file cload.c.

void dload_strings ( struct dload_state dlthis,
bool  sec_names_only 
)

Definition at line 593 of file cload.c.

void dload_syms_error ( struct dynamic_loader_sym syms,
const char errtxt,
  ... 
)

Definition at line 86 of file cload.c.

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.