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/bug.h>
#include <linux/elf.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleloader.h>
#include <linux/vmalloc.h>

Go to the source code of this file.


#define get_u16(loc)   (*((uint16_t *)loc))
#define put_u16(loc, val)   (*((uint16_t *)loc) = (val))


void module_free (struct module *mod, void *module_region)
int module_frob_arch_sections (Elf_Ehdr *hdr, Elf_Shdr *sechdrs, char *secstrings, struct module *module)
int apply_relocate_add (Elf32_Shdr *sechdrs, const char *strtab, unsigned int symindex, unsigned int relindex, struct module *module)
int module_finalize (const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, struct module *module)

Macro Definition Documentation

#define get_u16 (   loc)    (*((uint16_t *)loc))

Definition at line 144 of file module.c.

#define put_u16 (   loc,
)    (*((uint16_t *)loc) = (val))

Definition at line 145 of file module.c.

Function Documentation

int apply_relocate_add ( Elf32_Shdr sechdrs,
const char strtab,
unsigned int  symindex,
unsigned int  relindex,
struct module module 

Definition at line 147 of file module.c.

int module_finalize ( const Elf_Ehdr hdr,
const Elf_Shdr sechdrs,
struct module module 

Definition at line 295 of file module.c.

void module_free ( struct module mod,
void module_region 

Definition at line 22 of file module.c.

int module_frob_arch_sections ( Elf_Ehdr hdr,
Elf_Shdr sechdrs,
char secstrings,
struct module module 

Definition at line 62 of file module.c.