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

Go to the source code of this file.

Functions

long probe_kernel_read (void *dst, const void *src, size_t size)
 
long probe_kernel_write (void *dst, const void *src, size_t size)
 

Function Documentation

long probe_kernel_read ( void dst,
const void src,
size_t  size 
)

probe_kernel_read(): safely attempt to read from a location : pointer to the buffer that shall take the data : address to read from : size of the data chunk

Safely read from address to the buffer at . If a kernel fault happens, handle that and return -EFAULT.

Definition at line 19 of file maccess.c.

long probe_kernel_write ( void dst,
const void src,
size_t  size 
)

probe_kernel_write(): safely attempt to write to a location : address to write to : pointer to the data that shall be written : size of the data chunk

Safely write to address from the buffer at . If a kernel fault happens, handle that and return -EFAULT.

Definition at line 58 of file maccess.c.