#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/string.h>
#include <asm/segment.h>
#include <asm/sections.h>
Go to the source code of this file.
|
#define | get_ds() (KERNEL_DS) |
|
#define | get_fs() (current_thread_info()->addr_limit) |
|
#define | segment_eq(a, b) ((a) == (b)) |
|
#define | VERIFY_READ 0 |
|
#define | VERIFY_WRITE 1 |
|
#define | access_ok(type, addr, size) _access_ok((unsigned long)(addr), (size)) |
|
#define | put_user(x, p) |
|
#define | __put_user(x, p) put_user(x,p) |
|
#define | __put_user_bad() |
|
#define | __ptr(x) ((unsigned long *)(x)) |
|
#define | __put_user_asm(x, p, bhw) |
|
#define | get_user(x, ptr) |
|
#define | __get_user(x, p) get_user(x,p) |
|
#define | __get_user_bad() (bad_user_access_length(), (-EFAULT)) |
|
#define | __get_user_asm(x, ptr, bhw, option) |
|
#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) |
|
#define | copy_from_user_ret(to, from, n, retval) |
|
#define | clear_user(to, n) __clear_user(to, n) |
|
Value:({ \
__asm__ __volatile__ ( \
"%0 =" #bhw
"[%1]" #
option ";" \
})
Definition at line 175 of file uaccess.h.
#define __get_user_bad |
( |
|
void | ) |
(bad_user_access_length(), (-EFAULT)) |
#define __ptr |
( |
|
x | ) |
((unsigned long *)(x)) |
#define __put_user_asm |
( |
|
x, |
|
|
|
p, |
|
|
|
bhw |
|
) |
| |
#define __put_user_bad |
( |
|
void | ) |
|
Value:
__FILE__, __LINE__, __func__),\
bad_user_access_length(), (-
EFAULT))
Definition at line 129 of file uaccess.h.
#define get_user |
( |
|
x, |
|
|
|
ptr |
|
) |
| |
Value:({ \
int _err = 0; \
unsigned long _val = 0; \
BUILD_BUG_ON(ptr_size >= 8); \
switch (ptr_size) { \
case 1: \
__get_user_asm(_val, _p,
B,(
Z)); \
break; \
case 2: \
__get_user_asm(_val, _p,
W,(
Z)); \
break; \
case 4: \
__get_user_asm(_val, _p, , ); \
break; \
} \
} else \
_err; \
})
Definition at line 146 of file uaccess.h.
#define put_user |
( |
|
x, |
|
|
|
p |
|
) |
| |
#define segment_eq |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) == (b)) |
- Enumerator:
BFIN_MEM_ACCESS_CORE |
|
BFIN_MEM_ACCESS_CORE_ONLY |
|
BFIN_MEM_ACCESS_DMA |
|
BFIN_MEM_ACCESS_IDMA |
|
BFIN_MEM_ACCESS_ITEST |
|
Definition at line 276 of file uaccess.h.
int bfin_mem_access_type |
( |
unsigned long |
addr, |
|
|
unsigned long |
size |
|
) |
| |
bfin_mem_access_type() - what kind of memory access is required : the address to check : number of bytes needed
- Returns
- : <0 is error, >=0 is BFIN_MEM_ACCESS_xxx enum (see above)
Definition at line 391 of file process.c.