Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
crash_dump_64.c File Reference
#include <linux/errno.h>
#include <linux/crash_dump.h>
#include <linux/uaccess.h>
#include <linux/io.h>

Go to the source code of this file.


ssize_t copy_oldmem_page (unsigned long pfn, char *buf, size_t csize, unsigned long offset, int userbuf)

Function Documentation

ssize_t copy_oldmem_page ( unsigned long  pfn,
char buf,
size_t  csize,
unsigned long  offset,
int  userbuf 

copy_oldmem_page - copy one page from "oldmem" : page frame number to be copied : target memory address for the copy; this can be in kernel address space or user address space (see ) : number of bytes to copy : offset in bytes into the page (based on pfn) to begin the copy : if set, is in user address space, use copy_to_user(), otherwise is in kernel address space, use memcpy().

Copy a page from "oldmem". For this page, there is no pte mapped in the current kernel. We stitch up a pte, similar to kmap_atomic.

Definition at line 26 of file crash_dump_64.c.