Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
crash_dump.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.

Functions

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 old kernel memory : page frame number to be copied : buffer where the copied page is placed : number of bytes to copy : offset in bytes into the page : if set, is int he user address space

This function copies one page from old kernel memory into buffer pointed by . If is in userspace, set to %1. Returns number of bytes copied or negative error in case of failure.

Definition at line 33 of file crash_dump.c.