Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/uaccess.h
Context not available. | |||||
#define get_user(_x, _p) linux_copyin((_p), &(_x), sizeof(*(_p))) | #define get_user(_x, _p) linux_copyin((_p), &(_x), sizeof(*(_p))) | ||||
#define put_user(_x, _p) __put_user(_x, _p) | #define put_user(_x, _p) __put_user(_x, _p) | ||||
#define clear_user(...) linux_clear_user(__VA_ARGS__) | #define clear_user(...) linux_clear_user(__VA_ARGS__) | ||||
#ifndef access_ok /* For backwards compatibility */ | |||||
hselasky: Can you given an example where access_ok is already defined? | |||||
Not Done Inline ActionsSee user_access_begin above johalun: See user_access_begin above | |||||
#define access_ok(...) linux_access_ok(__VA_ARGS__) | #define access_ok(...) linux_access_ok(__VA_ARGS__) | ||||
#endif | |||||
extern int linux_copyin(const void *uaddr, void *kaddr, size_t len); | extern int linux_copyin(const void *uaddr, void *kaddr, size_t len); | ||||
extern int linux_copyout(const void *kaddr, void *uaddr, size_t len); | extern int linux_copyout(const void *kaddr, void *uaddr, size_t len); | ||||
extern size_t linux_clear_user(void *uaddr, size_t len); | extern size_t linux_clear_user(void *uaddr, size_t len); | ||||
extern int linux_access_ok(int rw, const void *uaddr, size_t len); | extern int linux_access_ok(const void *uaddr, size_t len); | ||||
/* | /* | ||||
* NOTE: Each pagefault_disable() call must have a corresponding | * NOTE: Each pagefault_disable() call must have a corresponding | ||||
Context not available. |
Can you given an example where access_ok is already defined?