#include <linux/thread_info.h>
#include <linux/errno.h>
#include <asm/processor.h>
#include <asm/elf.h>
Go to the source code of this file.
|
#define | VERIFY_READ 0 |
|
#define | VERIFY_WRITE 1 |
|
#define | MAKE_MM_SEG(s) ((mm_segment_t) { (s) }) |
|
#define | KERNEL_DS MAKE_MM_SEG(0xFFFFFFFF) |
|
#define | USER_DS MAKE_MM_SEG(TASK_SIZE) |
|
#define | get_ds() (KERNEL_DS) |
|
#define | get_fs() (current_thread_info()->addr_limit) |
|
#define | set_fs(x) (current_thread_info()->addr_limit = (x)) |
|
#define | segment_eq(a, b) ((a).seg == (b).seg) |
|
#define | __under_task_size(addr, size) |
|
#define | __access_ok_vsyscall(type, addr, size) |
|
#define | __addr_range_nowrap(addr, size) ((unsigned long) (addr) <= ((unsigned long) (addr) + (size))) |
|
#define | access_ok(type, addr, size) |
|
#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 | __get_user(x, ptr) |
|
#define | get_user(x, ptr) |
|
#define | __put_user(x, ptr) |
|
#define | put_user(x, ptr) |
|
#define | strlen_user(str) strnlen_user(str, ~0U >> 1) |
|
Value:({ \
const __typeof__(*(
ptr)) __user *__private_ptr = (
ptr); \
__typeof__(
x) __private_val; \
int __private_ret = -
EFAULT; \
(
x) = (__typeof__(*(__private_ptr)))0; \
sizeof(*(__private_ptr))) == 0) { \
(
x) = (__typeof__(*(__private_ptr))) __private_val; \
__private_ret = 0; \
} \
__private_ret; \
})
Definition at line 129 of file uaccess.h.
#define __put_user |
( |
|
x, |
|
|
|
ptr |
|
) |
| |
Value:({ \
__typeof__(*(
ptr)) __user *__private_ptr =
ptr; \
__typeof__(*(__private_ptr)) __private_val; \
int __private_ret = -
EFAULT; \
__private_val = (__typeof__(*(__private_ptr))) (
x); \
sizeof(*(__private_ptr))) == 0) { \
__private_ret = 0; \
} \
__private_ret; \
})
Definition at line 150 of file uaccess.h.
#define __under_task_size |
( |
|
addr, |
|
|
|
size |
|
) |
| |
#define get_user |
( |
|
x, |
|
|
|
ptr |
|
) |
| |
Value:({ \
const __typeof__((*(
ptr))) __user *private_ptr = (
ptr); \
})
Definition at line 143 of file uaccess.h.
#define put_user |
( |
|
x, |
|
|
|
ptr |
|
) |
| |
Value:({ \
__typeof__(*(
ptr)) __user *private_ptr = (
ptr); \
})
Definition at line 163 of file uaccess.h.