Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
uaccess.h File Reference
#include <linux/sched.h>
#include <linux/mm.h>
#include <asm/segment.h>
#include <asm/sections.h>
#include <asm-generic/uaccess.h>

Go to the source code of this file.

Macros

#define VERIFY_READ   0
 
#define VERIFY_WRITE   1
 
#define __access_ok(addr, size)
 
#define __copy_from_user(to, from, n)   __copy_from_user_hexagon(to, from, n)
 
#define __copy_to_user(to, from, n)   __copy_to_user_hexagon(to, from, n)
 
#define __clear_user(a, s)   __clear_user_hexagon((a), (s))
 
#define __strncpy_from_user(dst, src, n)   hexagon_strncpy_from_user(dst, src, n)
 
#define __strnlen_user   __strnlen_user
 

Functions

unsigned long __copy_from_user_hexagon (void *to, const void __user *from, unsigned long n)
 
unsigned long __copy_to_user_hexagon (void __user *to, const void *from, unsigned long n)
 
__kernel_size_t __clear_user_hexagon (void __user *dest, unsigned long count)
 
long __strnlen_user (const char __user *src, long n)
 

Macro Definition Documentation

#define __access_ok (   addr,
  size 
)
Value:
((get_fs().seg == KERNEL_DS.seg) || \
(((unsigned long)addr < get_fs().seg) && \
(unsigned long)size < (get_fs().seg - (unsigned long)addr)))

Definition at line 55 of file uaccess.h.

#define __clear_user (   a,
  s 
)    __clear_user_hexagon((a), (s))

Definition at line 85 of file uaccess.h.

#define __copy_from_user (   to,
  from,
  n 
)    __copy_from_user_hexagon(to, from, n)

Definition at line 75 of file uaccess.h.

#define __copy_to_user (   to,
  from,
  n 
)    __copy_to_user_hexagon(to, from, n)

Definition at line 76 of file uaccess.h.

#define __strncpy_from_user (   dst,
  src,
  n 
)    hexagon_strncpy_from_user(dst, src, n)

Definition at line 87 of file uaccess.h.

#define __strnlen_user   __strnlen_user

Definition at line 90 of file uaccess.h.

#define VERIFY_READ   0

Definition at line 52 of file uaccess.h.

#define VERIFY_WRITE   1

Definition at line 53 of file uaccess.h.

Function Documentation

__kernel_size_t __clear_user_hexagon ( void __user dest,
unsigned long  count 
)

Definition at line 35 of file uaccess.c.

unsigned long __copy_from_user_hexagon ( void to,
const void __user from,
unsigned long  n 
)
unsigned long __copy_to_user_hexagon ( void __user to,
const void from,
unsigned long  n 
)
long __strnlen_user ( const char __user src,
long  n 
)