Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
uaccess_32.h File Reference
#include <linux/errno.h>
#include <linux/thread_info.h>
#include <linux/string.h>
#include <asm/asm.h>
#include <asm/page.h>

Go to the source code of this file.

Functions

unsigned long __must_check __copy_to_user_ll (void __user *to, const void *from, unsigned long n)
 
unsigned long __must_check __copy_from_user_ll (void *to, const void __user *from, unsigned long n)
 
unsigned long __must_check __copy_from_user_ll_nozero (void *to, const void __user *from, unsigned long n)
 
unsigned long __must_check __copy_from_user_ll_nocache (void *to, const void __user *from, unsigned long n)
 
unsigned long __must_check __copy_from_user_ll_nocache_nozero (void *to, const void __user *from, unsigned long n)
 
unsigned long __must_check copy_to_user (void __user *to, const void *from, unsigned long n)
 
unsigned long __must_check _copy_from_user (void *to, const void __user *from, unsigned long n)
 
void copy_from_user_overflow (void) __compiletime_warning("copy_from_user() buffer size is not provably correct")
 

Function Documentation

unsigned long __must_check __copy_from_user_ll ( void to,
const void __user from,
unsigned long  n 
)

Definition at line 640 of file usercopy_32.c.

unsigned long __must_check __copy_from_user_ll_nocache ( void to,
const void __user from,
unsigned long  n 
)

Definition at line 667 of file usercopy_32.c.

unsigned long __must_check __copy_from_user_ll_nocache_nozero ( void to,
const void __user from,
unsigned long  n 
)

Definition at line 684 of file usercopy_32.c.

unsigned long __must_check __copy_from_user_ll_nozero ( void to,
const void __user from,
unsigned long  n 
)

Definition at line 653 of file usercopy_32.c.

unsigned long __must_check __copy_to_user_ll ( void __user to,
const void from,
unsigned long  n 
)

Definition at line 570 of file usercopy_32.c.

unsigned long __must_check _copy_from_user ( void to,
const void __user from,
unsigned long  n 
)

copy_from_user: - Copy a block of data from user space. : Destination address, in kernel space. : Source address, in user space.
: Number of bytes to copy.

Context: User context only. This function may sleep.

Copy data from user space to kernel space.

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

If some data could not be copied, this function will pad the copied data to the requested size using zero bytes.

Definition at line 740 of file usercopy_32.c.

void copy_from_user_overflow ( void  )

Definition at line 4 of file usercopy.c.

unsigned long __must_check copy_to_user ( void __user to,
const void from,
unsigned long  n 
)

copy_to_user: - Copy a block of data into user space. : Destination address, in user space. : Source address, in kernel space.
: Number of bytes to copy.

Context: User context only. This function may sleep.

Copy data from kernel space to user space.

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

Definition at line 21 of file usercopy_64.c.