#include <linux/sched.h>
#include <linux/errno.h>
#include <asm/ctl_reg.h>
Go to the source code of this file.
|
#define | VERIFY_READ 0 |
|
#define | VERIFY_WRITE 1 |
|
#define | MAKE_MM_SEG(a) ((mm_segment_t) { (a) }) |
|
#define | KERNEL_DS MAKE_MM_SEG(0) |
|
#define | USER_DS MAKE_MM_SEG(1) |
|
#define | get_ds() (KERNEL_DS) |
|
#define | get_fs() (current->thread.mm_segment) |
|
#define | set_fs(x) |
|
#define | segment_eq(a, b) ((a).ar4 == (b).ar4) |
|
#define | __access_ok(addr, size) |
|
#define | access_ok(type, addr, size) __access_ok(addr, size) |
|
#define | ARCH_HAS_SORT_EXTABLE |
|
#define | ARCH_HAS_SEARCH_EXTABLE |
|
#define | __put_user(x, ptr) |
|
#define | put_user(x, ptr) |
|
#define | __get_user(x, ptr) |
|
#define | get_user(x, ptr) |
|
#define | __put_user_unaligned __put_user |
|
#define | __get_user_unaligned __get_user |
|
#define | __copy_to_user_inatomic __copy_to_user |
|
#define | __copy_from_user_inatomic __copy_from_user |
|
#define | strlen_user(str) strnlen_user(str, ~0UL) |
|
Value:({ \
__range_ok((
unsigned long)(
addr), (
size)); \
})
Definition at line 56 of file uaccess.h.
#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 132 of file uaccess.h.
#define ARCH_HAS_SEARCH_EXTABLE |
#define ARCH_HAS_SORT_EXTABLE |
#define get_user |
( |
|
x, |
|
|
|
ptr |
|
) |
| |
#define put_user |
( |
|
x, |
|
|
|
ptr |
|
) |
| |
#define segment_eq |
( |
|
a, |
|
|
|
b |
|
) |
| ((a).ar4 == (b).ar4) |
Value:({ \
unsigned long __pto; \
current->thread.mm_segment = (
x); \
__pto =
current->thread.mm_segment.ar4 ? \
__ctl_load(__pto, 7, 7); \
})
Definition at line 40 of file uaccess.h.
strlen_user: - Get the size of a string in user space. : The string to measure.
Context: User context only. This function may sleep.
Get the size of a NUL-terminated string in user space.
Returns the size of the string INCLUDING the terminating NUL. On exception, returns 0.
If there is a limit on the length of a valid string, you may wish to consider using strnlen_user() instead.
Definition at line 374 of file uaccess.h.
int __handle_fault |
( |
unsigned |
long, |
|
|
unsigned |
long, |
|
|
int |
|
|
) |
| |