Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
kcore.c File Reference
#include <linux/mm.h>
#include <linux/proc_fs.h>
#include <linux/user.h>
#include <linux/capability.h>
#include <linux/elf.h>
#include <linux/elfcore.h>
#include <linux/vmalloc.h>
#include <linux/highmem.h>
#include <linux/bootmem.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <linux/list.h>
#include <linux/ioport.h>
#include <linux/memory.h>
#include <asm/sections.h>

Go to the source code of this file.

Data Structures

struct  memelfnote
 

Macros

#define CORE_STR   "CORE"
 
#define ELF_CORE_EFLAGS   0
 
#define kc_vaddr_to_offset(v)   ((v) - PAGE_OFFSET)
 
#define kc_offset_to_vaddr(o)   ((o) + PAGE_OFFSET)
 
#define DUMP_WRITE(addr, nr)   do { memcpy(bufp,addr,nr); bufp += nr; } while(0)
 

Functions

void kclist_add (struct kcore_list *new, void *addr, size_t size, int type)
 
 module_init (proc_kcore_init)
 

Macro Definition Documentation

#define CORE_STR   "CORE"

Definition at line 30 of file kcore.c.

#define DUMP_WRITE (   addr,
  nr 
)    do { memcpy(bufp,addr,nr); bufp += nr; } while(0)
#define ELF_CORE_EFLAGS   0

Definition at line 33 of file kcore.c.

#define kc_offset_to_vaddr (   o)    ((o) + PAGE_OFFSET)

Definition at line 43 of file kcore.c.

#define kc_vaddr_to_offset (   v)    ((v) - PAGE_OFFSET)

Definition at line 40 of file kcore.c.

Function Documentation

void kclist_add ( struct kcore_list new,
void addr,
size_t  size,
int  type 
)

Definition at line 60 of file kcore.c.

module_init ( proc_kcore_init  )