|
#define | VERIFY_READ 0 |
|
#define | VERIFY_WRITE 1 |
|
#define | KERNEL_DS ((mm_segment_t) { 0 }) |
|
#define | USER_DS ((mm_segment_t) { 1 }) |
|
#define | get_ds() (KERNEL_DS) |
|
#define | get_fs() (current->thread.current_ds) |
|
#define | set_fs(val) (current->thread.current_ds = (val)) |
|
#define | segment_eq(a, b) ((a).seg == (b).seg) |
|
#define | __kernel_ok (segment_eq(get_fs(), KERNEL_DS)) |
|
#define | __user_ok(addr, size) (((size) <= TASK_SIZE)&&((addr) <= TASK_SIZE-(size))) |
|
#define | __access_ok(addr, size) (__kernel_ok || __user_ok((addr),(size))) |
|
#define | access_ok(type, addr, size) __access_ok((unsigned long)(addr),(size)) |
|
#define | put_user(x, ptr) __put_user_check((x),(ptr),sizeof(*(ptr))) |
|
#define | get_user(x, ptr) __get_user_check((x),(ptr),sizeof(*(ptr))) |
|
#define | __put_user(x, ptr) __put_user_nocheck((x),(ptr),sizeof(*(ptr))) |
|
#define | __get_user(x, ptr) __get_user_nocheck((x),(ptr),sizeof(*(ptr))) |
|
#define | __put_user_nocheck(x, ptr, size) |
|
#define | __put_user_check(x, ptr, size) |
|
#define | __put_user_size(x, ptr, size, retval) |
|
#define | __check_align_1 "" |
|
#define | __check_align_2 |
|
#define | __check_align_4 |
|
#define | __put_user_asm(x, addr, err, align, insn, cb) |
|
#define | __get_user_nocheck(x, ptr, size) |
|
#define | __get_user_check(x, ptr, size) |
|
#define | __get_user_size(x, ptr, size, retval) |
|
#define | __get_user_asm(x, addr, err, align, insn, cb) |
|
#define | __copy_user(to, from, size) __xtensa_copy_user(to,from,size) |
|
#define | copy_to_user(to, from, n) __generic_copy_to_user((to),(from),(n)) |
|
#define | copy_from_user(to, from, n) __generic_copy_from_user((to),(from),(n)) |
|
#define | __copy_to_user(to, from, n) __generic_copy_to_user_nocheck((to),(from),(n)) |
|
#define | __copy_from_user(to, from, n) __generic_copy_from_user_nocheck((to),(from),(n)) |
|
#define | __copy_to_user_inatomic __copy_to_user |
|
#define | __copy_from_user_inatomic __copy_from_user |
|
#define | __clear_user __xtensa_clear_user |
|
#define | __strncpy_from_user __strncpy_user |
|
#define | strlen_user(str) strnlen_user((str), TASK_SIZE - 1) |
|
#define | fixup_exception(map_reg, fixup_unit, pc) |
|