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 | |
unsigned long | search_extables_range (unsigned long addr, unsigned long *g2) |
void | __ret_efault (void) |
int | __put_user_bad (void) |
int | __get_user_bad (void) |
unsigned long | __copy_user (void __user *to, const void __user *from, unsigned long size) |
__must_check long | strlen_user (const char __user *str) |
__must_check long | strnlen_user (const char __user *str, long n) |
Definition at line 49 of file uaccess_32.h.
#define __copy_from_user_inatomic __copy_from_user |
Definition at line 278 of file uaccess_32.h.
#define __copy_to_user_inatomic __copy_to_user |
Definition at line 277 of file uaccess_32.h.
#define __get_user | ( | x, | |
ptr | |||
) | __get_user_nocheck((x),(ptr),sizeof(*(ptr)),__typeof__(*(ptr))) |
Definition at line 110 of file uaccess_32.h.
Definition at line 201 of file uaccess_32.h.
Definition at line 221 of file uaccess_32.h.
Definition at line 157 of file uaccess_32.h.
Definition at line 169 of file uaccess_32.h.
Definition at line 180 of file uaccess_32.h.
Definition at line 191 of file uaccess_32.h.
#define __kernel_ok (segment_eq(get_fs(), KERNEL_DS)) |
Definition at line 48 of file uaccess_32.h.
#define __m | ( | x | ) | ((struct __large_struct __user *)(x)) |
Definition at line 113 of file uaccess_32.h.
Definition at line 109 of file uaccess_32.h.
Definition at line 136 of file uaccess_32.h.
Definition at line 115 of file uaccess_32.h.
Definition at line 126 of file uaccess_32.h.
Definition at line 47 of file uaccess_32.h.
#define access_ok | ( | type, | |
addr, | |||
size | |||
) | ({ (void)(type); __access_ok((unsigned long)(addr), size); }) |
Definition at line 50 of file uaccess_32.h.
#define ARCH_HAS_SEARCH_EXTABLE |
Definition at line 22 of file uaccess_32.h.
#define ARCH_HAS_SORT_EXTABLE |
Definition at line 21 of file uaccess_32.h.
Definition at line 36 of file uaccess_32.h.
Definition at line 37 of file uaccess_32.h.
#define KERNEL_DS ((mm_segment_t) { 0 }) |
Definition at line 30 of file uaccess_32.h.
Definition at line 38 of file uaccess_32.h.
#define USER_DS ((mm_segment_t) { -1 }) |
Definition at line 31 of file uaccess_32.h.
#define VERIFY_READ 0 |
Definition at line 33 of file uaccess_32.h.
#define VERIFY_WRITE 1 |
Definition at line 34 of file uaccess_32.h.
__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.