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 <linux/bug.h>
#include <linux/mm.h>
#include <linux/gfp.h>
#include <linux/jump_label.h>
#include <asm/page.h>
#include <asm/pgtable.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DEBUGP(fmt,...)
 

Functions

voidmodule_alloc (unsigned long size)
 
int apply_relocate_add (Elf64_Shdr *sechdrs, const char *strtab, unsigned int symindex, unsigned int relsec, struct module *me)
 
int module_finalize (const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, struct module *me)
 
void module_arch_cleanup (struct module *mod)
 

Macro Definition Documentation

#define DEBUGP (   fmt,
  ... 
)
Value:
do { \
if (0) \
printk(KERN_DEBUG fmt, ##__VA_ARGS__); \
} while (0)

Definition at line 39 of file module.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 19 of file module.c.

Function Documentation

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

Definition at line 96 of file module.c.

void* module_alloc ( unsigned long  size)

Definition at line 46 of file module.c.

void module_arch_cleanup ( struct module mod)

Definition at line 210 of file module.c.

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

Definition at line 167 of file module.c.