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/export.h>
#include <linux/mm.h>
#include <linux/uaccess.h>

Go to the source code of this file.

Functions

long __weak probe_kernel_read (void *dst, const void *src, size_t size) __attribute__((alias("__probe_kernel_read")))
 
long __probe_kernel_read (void *dst, const void *src, size_t size)
 
 EXPORT_SYMBOL_GPL (probe_kernel_read)
 
long __weak probe_kernel_write (void *dst, const void *src, size_t size) __attribute__((alias("__probe_kernel_write")))
 
long __probe_kernel_write (void *dst, const void *src, size_t size)
 
 EXPORT_SYMBOL_GPL (probe_kernel_write)
 

Function Documentation

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

Definition at line 21 of file maccess.c.

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

Definition at line 49 of file maccess.c.

EXPORT_SYMBOL_GPL ( probe_kernel_read  )
EXPORT_SYMBOL_GPL ( probe_kernel_write  )
long __weak 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 __weak 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.