#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/string.h>
#include <asm/segment.h>
Go to the source code of this file.
|
#define | VERIFY_READ 0 |
|
#define | VERIFY_WRITE 1 |
|
#define | access_ok(type, addr, size) __access_ok((unsigned long)addr,size) |
|
#define | RANGE_CHECK_OK(addr, size, lower, upper) (((addr) >= (lower)) && (((addr) + (size)) < (upper))) |
|
#define | put_user(x, ptr) |
|
#define | __put_user(x, ptr) put_user(x, ptr) |
|
#define | __ptr(x) ((unsigned long *)(x)) |
|
#define | get_user(x, ptr) |
|
#define | __get_user(x, ptr) get_user(x, ptr) |
|
#define | copy_from_user(to, from, n) (memcpy(to, from, n), 0) |
|
#define | copy_to_user(to, from, n) (memcpy(to, from, n), 0) |
|
#define | __copy_from_user(to, from, n) copy_from_user(to, from, n) |
|
#define | __copy_to_user(to, from, n) copy_to_user(to, from, n) |
|
#define | __copy_to_user_inatomic __copy_to_user |
|
#define | __copy_from_user_inatomic __copy_from_user |
|
#define | copy_to_user_ret(to, from, n, retval) ({ if (copy_to_user(to,from,n)) return retval; }) |
|
#define | copy_from_user_ret(to, from, n, retval) ({ if (copy_from_user(to,from,n)) return retval; }) |
|
#define | strlen_user(str) strnlen_user(str, 32767) |
|
#define | __clear_user clear_user |
|
#define __ptr |
( |
|
x | ) |
((unsigned long *)(x)) |
#define get_user |
( |
|
x, |
|
|
|
ptr |
|
) |
| |
Value:({ \
int __gu_err = 0; \
typeof(*(
ptr)) __gu_val = *
ptr; \
case 1: \
case 2: \
case 4: \
case 8: \
break; \
default: \
break; \
} \
__gu_err; \
})
Definition at line 91 of file uaccess.h.
#define put_user |
( |
|
x, |
|
|
|
ptr |
|
) |
| |
Value:({ \
int __pu_err = 0; \
typeof(*(
ptr)) __pu_val = (
x); \
case 1: \
case 2: \
case 4: \
break; \
case 8: \
memcpy(ptr, &__pu_val, sizeof (*(ptr))); \
break; \
default: \
break; \
} \
__pu_err; \
})
Definition at line 54 of file uaccess.h.
#define RANGE_CHECK_OK |
( |
|
addr, |
|
|
|
size, |
|
|
|
lower, |
|
|
|
upper |
|
) |
| (((addr) >= (lower)) && (((addr) + (size)) < (upper))) |
unsigned long search_exception_table |
( |
unsigned |
long | ) |
|