Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
uaccess_with_memcpy.c File Reference
#include <linux/kernel.h>
#include <linux/ctype.h>
#include <linux/uaccess.h>
#include <linux/rwsem.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/hardirq.h>
#include <linux/gfp.h>
#include <linux/highmem.h>
#include <asm/current.h>
#include <asm/page.h>

Go to the source code of this file.

Functions

unsigned long __copy_to_user (void __user *to, const void *from, unsigned long n)
 
unsigned long __clear_user (void __user *addr, unsigned long n)
 

Function Documentation

unsigned long __clear_user ( void __user mem,
unsigned long  len 
)

__clear_user: - Zero a block of memory in user space, with less checking. : Destination address, in user space.
: Number of bytes to zero.

Zero a block of memory in user space. Caller must check the specified block with access_ok() before calling this function.

Returns number of bytes that could not be cleared. On success, this will be zero.

Definition at line 158 of file uaccess_with_memcpy.c.

unsigned long __copy_to_user ( void __user to,
const void from,
unsigned long  n 
)

Definition at line 107 of file uaccess_with_memcpy.c.