Linux Kernel
3.7.1
|
#include <asm/processor.h>
Go to the source code of this file.
Data Structures | |
struct | exception_table_entry |
struct | __large_struct |
Functions | |
void | __ret_efault (void) |
void | __retl_efault (void) |
int | __put_user_bad (void) |
int | __get_user_bad (void) |
unsigned long __must_check | ___copy_from_user (void *to, const void __user *from, unsigned long size) |
unsigned long | copy_from_user_fixup (void *to, const void __user *from, unsigned long size) |
unsigned long __must_check | ___copy_to_user (void __user *to, const void *from, unsigned long size) |
unsigned long | copy_to_user_fixup (void __user *to, const void *from, unsigned long size) |
unsigned long __must_check | ___copy_in_user (void __user *to, const void __user *from, unsigned long size) |
unsigned long | copy_in_user_fixup (void __user *to, void __user *from, unsigned long size) |
unsigned long __must_check | __clear_user (void __user *, unsigned long) |
__must_check long | strlen_user (const char __user *str) |
__must_check long | strnlen_user (const char __user *str, long n) |
unsigned long | compute_effective_address (struct pt_regs *, unsigned int insn, unsigned int rd) |
#define __copy_from_user copy_from_user |
Definition at line 224 of file uaccess_64.h.
#define __copy_from_user_inatomic ___copy_from_user |
Definition at line 266 of file uaccess_64.h.
#define __copy_in_user copy_in_user |
Definition at line 256 of file uaccess_64.h.
#define __copy_to_user copy_to_user |
Definition at line 240 of file uaccess_64.h.
#define __copy_to_user_inatomic ___copy_to_user |
Definition at line 265 of file uaccess_64.h.
Definition at line 102 of file uaccess_64.h.
Definition at line 160 of file uaccess_64.h.
Definition at line 181 of file uaccess_64.h.
Definition at line 139 of file uaccess_64.h.
Definition at line 150 of file uaccess_64.h.
#define __m | ( | x | ) | ((struct __large_struct *)(x)) |
Definition at line 105 of file uaccess_64.h.
Definition at line 117 of file uaccess_64.h.
Definition at line 107 of file uaccess_64.h.
#define clear_user __clear_user |
Definition at line 260 of file uaccess_64.h.
Definition at line 42 of file uaccess_64.h.
#define get_fs | ( | void | ) | ((mm_segment_t) { get_thread_current_ds() }) |
Definition at line 41 of file uaccess_64.h.
#define KERNEL_DS ((mm_segment_t) { ASI_P }) |
Definition at line 35 of file uaccess_64.h.
#define set_fs | ( | val | ) |
#define USER_DS ((mm_segment_t) { ASI_AIUS }) /* har har har */ |
Definition at line 36 of file uaccess_64.h.
#define VERIFY_READ 0 |
Definition at line 38 of file uaccess_64.h.
#define VERIFY_WRITE 1 |
Definition at line 39 of file uaccess_64.h.
unsigned long __must_check ___copy_from_user | ( | void * | to, |
const void __user * | from, | ||
unsigned long | size | ||
) |
unsigned long __must_check ___copy_in_user | ( | void __user * | to, |
const void __user * | from, | ||
unsigned long | size | ||
) |
unsigned long __must_check ___copy_to_user | ( | void __user * | to, |
const void * | from, | ||
unsigned long | size | ||
) |
unsigned long __must_check __clear_user | ( | void __user * | addr, |
unsigned long | size | ||
) |
__clear_user: - Zero a block of memory in user space, with less checking. : Destination address, in user space.
: Number of bytes to zero.
Zero a block of memory in user space. Caller must check the specified block with access_ok() before calling this function.
Returns number of bytes that could not be cleared. On success, this will be zero.
Definition at line 158 of file uaccess_with_memcpy.c.
Definition at line 163 of file unaligned_64.c.
Definition at line 35 of file user_fixup.c.
Definition at line 55 of file user_fixup.c.
Definition at line 47 of file user_fixup.c.
__must_check long strlen_user | ( | const char __user * | str | ) |
strlen_user: - Get the size of a user string INCLUDING final NUL. : 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 126 of file strnlen_user.c.
strnlen_user: - Get the size of a user string INCLUDING final NUL. : The string to measure. : Maximum count (including NUL character)
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. If the string is too long, returns 'count+1'. On exception (or invalid count), returns 0.