Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
module.c File Reference
#include <linux/moduleloader.h>
#include <linux/elf.h>
#include <linux/vmalloc.h>
#include <linux/fs.h>
#include <linux/string.h>
#include <linux/kernel.h>
#include <asm/pgtable.h>
#include <asm/homecache.h>
#include <arch/opcode.h>

Go to the source code of this file.

Macros

#define DEBUGP(fmt...)
 
#define MUNGE(func)   (*location = swab64((swab64(*location) & ~func(-1)) | func(value)))
 

Functions

voidmodule_alloc (unsigned long size)
 
void module_free (struct module *mod, void *module_region)
 
int apply_relocate_add (Elf_Shdr *sechdrs, const char *strtab, unsigned int symindex, unsigned int relsec, struct module *me)
 

Macro Definition Documentation

#define DEBUGP (   fmt...)

Definition at line 30 of file module.c.

#define MUNGE (   func)    (*location = swab64((swab64(*location) & ~func(-1)) | func(value)))

Function Documentation

int apply_relocate_add ( Elf_Shdr sechdrs,
const char strtab,
unsigned int  symindex,
unsigned int  relsec,
struct module me 
)

Definition at line 124 of file module.c.

void* module_alloc ( unsigned long  size)

Definition at line 37 of file module.c.

void module_free ( struct module mod,
void module_region 
)

Definition at line 79 of file module.c.