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 <linux/kernel.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/gfp.h>
#include <linux/cpu.h>
#include <asm/ctl_reg.h>

Go to the source code of this file.

Functions

long probe_kernel_write (void *dst, const void *src, size_t size)
 
int memcpy_real (void *dest, void *src, size_t count)
 
void memcpy_absolute (void *dest, void *src, size_t count)
 
int copy_to_user_real (void __user *dest, void *src, size_t count)
 
int copy_from_user_real (void *dest, void __user *src, size_t count)
 
voidxlate_dev_mem_ptr (unsigned long addr)
 
void unxlate_dev_mem_ptr (unsigned long addr, void *buf)
 

Function Documentation

int copy_from_user_real ( void dest,
void __user src,
size_t  count 
)

Definition at line 156 of file maccess.c.

int copy_to_user_real ( void __user dest,
void src,
size_t  count 
)

Definition at line 130 of file maccess.c.

void memcpy_absolute ( void dest,
void src,
size_t  count 
)

Definition at line 106 of file maccess.c.

int memcpy_real ( void dest,
void src,
size_t  count 
)

Definition at line 89 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 50 of file maccess.c.

void unxlate_dev_mem_ptr ( unsigned long  addr,
void buf 
)

Definition at line 225 of file maccess.c.

void* xlate_dev_mem_ptr ( unsigned long  addr)

Definition at line 204 of file maccess.c.