#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 | MAKE_MM_SEG(s) ((mm_segment_t) { (s) }) |
|
#define | KERNEL_DS MAKE_MM_SEG(~0UL) |
|
#define | USER_DS MAKE_MM_SEG(TASK_SIZE - 1) |
|
#define | get_ds() (KERNEL_DS) |
|
#define | get_fs() (current_thread_info()->addr_limit) |
|
#define | segment_eq(a, b) ((a).seg == (b).seg) |
|
#define | VERIFY_READ 0 |
|
#define | VERIFY_WRITE 1 |
|
#define | access_ok(type, addr, size) __access_ok((unsigned long)(addr),(size)) |
|
#define | __put_user(x, ptr) |
|
#define | put_user(x, ptr) |
|
#define | __get_user(x, ptr) |
|
#define | get_user(x, ptr) |
|
#define | __copy_from_user_inatomic __copy_from_user |
|
#define | __copy_to_user_inatomic __copy_to_user |
|
#define | __strnlen_user(s, n) (strnlen((s), (n)) + 1) |
|
#define __put_user |
( |
|
x, |
|
|
|
ptr |
|
) |
| |
Value:({ \
__typeof__(*(
ptr)) __x = (
x); \
case 1: \
case 2: \
case 4: \
case 8: \
__pu_err = __put_user_fn(sizeof (*(ptr)), \
ptr, &__x); \
break; \
default: \
__put_user_bad(); \
break; \
} \
__pu_err; \
})
Definition at line 143 of file uaccess.h.
#define __strnlen_user |
( |
|
s, |
|
|
|
n |
|
) |
| (strnlen((s), (n)) + 1) |
#define get_user |
( |
|
x, |
|
|
|
ptr |
|
) |
| |
#define put_user |
( |
|
x, |
|
|
|
ptr |
|
) |
| |
unsigned long search_exception_table |
( |
unsigned |
long | ) |
|