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

Go to the source code of this file.

Functions

unsigned long __clear_user (void __user *addr, unsigned long size)
 
 EXPORT_SYMBOL (__clear_user)
 
unsigned long clear_user (void __user *to, unsigned long n)
 
 EXPORT_SYMBOL (clear_user)
 
unsigned long copy_in_user (void __user *to, const void __user *from, unsigned len)
 
 EXPORT_SYMBOL (copy_in_user)
 
unsigned long copy_user_handle_tail (char *to, char *from, unsigned len, unsigned zerorest)
 

Function Documentation

unsigned long __clear_user ( void __user addr,
unsigned long  size 
)

__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 15 of file usercopy_64.c.

unsigned long clear_user ( void __user to,
unsigned long  n 
)

clear_user: - Zero a block of memory in user space. : Destination address, in user space.
: Number of bytes to zero.

Zero a block of memory in user space.

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

Definition at line 49 of file usercopy_64.c.

unsigned long copy_in_user ( void __user to,
const void __user from,
unsigned  len 
)

Definition at line 57 of file usercopy_64.c.

unsigned long copy_user_handle_tail ( char to,
char from,
unsigned  len,
unsigned  zerorest 
)

Definition at line 72 of file usercopy_64.c.

EXPORT_SYMBOL ( __clear_user  )
EXPORT_SYMBOL ( clear_user  )
EXPORT_SYMBOL ( copy_in_user  )