Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
uaccess.h File Reference
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/thread_info.h>

Go to the source code of this file.

Data Structures

struct  __large_struct
 
struct  exception_table_entry
 

Macros

#define KERNEL_DS   ((mm_segment_t) { 0UL })
 
#define USER_DS   ((mm_segment_t) { __UA_LIMIT })
 
#define VERIFY_READ   0
 
#define VERIFY_WRITE   1
 
#define get_ds()   (KERNEL_DS)
 
#define get_fs()   (current_thread_info()->addr_limit)
 
#define set_fs(x)   (current_thread_info()->addr_limit = (x))
 
#define segment_eq(a, b)   ((a).seg == (b).seg)
 
#define __ua_size(size)   ((__builtin_constant_p(size) && (signed long) (size) > 0) ? 0 : (size))
 
#define __access_mask   get_fs().seg
 
#define __access_ok(addr, size, mask)
 
#define access_ok(type, addr, size)   likely(__access_ok((addr), (size), __access_mask))
 
#define put_user(x, ptr)   __put_user_check((x), (ptr), sizeof(*(ptr)))
 
#define get_user(x, ptr)   __get_user_check((x), (ptr), sizeof(*(ptr)))
 
#define __put_user(x, ptr)   __put_user_nocheck((x), (ptr), sizeof(*(ptr)))
 
#define __get_user(x, ptr)   __get_user_nocheck((x), (ptr), sizeof(*(ptr)))
 
#define __m(x)   (*(struct __large_struct __user *)(x))
 
#define __get_user_common(val, size, ptr)
 
#define __get_user_nocheck(x, ptr, size)
 
#define __get_user_check(x, ptr, size)
 
#define __get_user_asm(val, insn, addr)
 
#define __get_user_asm_ll32(val, addr)
 
#define __put_user_nocheck(x, ptr, size)
 
#define __put_user_check(x, ptr, size)
 
#define __put_user_asm(insn, ptr)
 
#define __put_user_asm_ll32(ptr)
 
#define put_user_unaligned(x, ptr)   __put_user_unaligned_check((x),(ptr),sizeof(*(ptr)))
 
#define get_user_unaligned(x, ptr)   __get_user_unaligned_check((x),(ptr),sizeof(*(ptr)))
 
#define __put_user_unaligned(x, ptr)   __put_user_unaligned_nocheck((x),(ptr),sizeof(*(ptr)))
 
#define __get_user_unaligned(x, ptr)   __get_user__unalignednocheck((x),(ptr),sizeof(*(ptr)))
 
#define __get_user_unaligned_common(val, size, ptr)
 
#define __get_user_unaligned_nocheck(x, ptr, size)
 
#define __get_user_unaligned_check(x, ptr, size)
 
#define __get_user_unaligned_asm(val, insn, addr)
 
#define __get_user_unaligned_asm_ll32(val, addr)
 
#define __put_user_unaligned_nocheck(x, ptr, size)
 
#define __put_user_unaligned_check(x, ptr, size)
 
#define __put_user_unaligned_asm(insn, ptr)
 
#define __put_user_unaligned_asm_ll32(ptr)
 
#define __MODULE_JAL(destination)   "jal\t" #destination "\n\t"
 
#define DADDI_SCRATCH   "$0"
 
#define __invoke_copy_to_user(to, from, n)
 
#define __copy_to_user(to, from, n)
 
#define __copy_to_user_inatomic(to, from, n)
 
#define __copy_from_user_inatomic(to, from, n)
 
#define copy_to_user(to, from, n)
 
#define __invoke_copy_from_user(to, from, n)
 
#define __invoke_copy_from_user_inatomic(to, from, n)
 
#define __copy_from_user(to, from, n)
 
#define copy_from_user(to, from, n)
 
#define __copy_in_user(to, from, n)
 
#define copy_in_user(to, from, n)
 
#define clear_user(addr, n)
 

Functions

void __get_user_unknown (void)
 
void __put_user_unknown (void)
 
void __get_user_unaligned_unknown (void)
 
void __put_user_unaligned_unknown (void)
 
size_t __copy_user (void *__to, const void *__from, size_t __n)
 
size_t __copy_user_inatomic (void *__to, const void *__from, size_t __n)
 
int fixup_exception (struct pt_regs *regs)
 

Macro Definition Documentation

#define __access_mask   get_fs().seg

Definition at line 107 of file uaccess.h.

#define __access_ok (   addr,
  size,
  mask 
)
Value:
({ \
unsigned long __addr = (unsigned long) (addr); \
unsigned long __size = size; \
unsigned long __mask = mask; \
unsigned long __ok; \
__ok = (signed long)(__mask & (__addr | (__addr + __size) | \
__ua_size(__size))); \
__ok == 0; \
})

Definition at line 109 of file uaccess.h.

#define __copy_from_user (   to,
  from,
  n 
)
Value:
({ \
void *__cu_to; \
const void __user *__cu_from; \
long __cu_len; \
\
__cu_to = (to); \
__cu_from = (from); \
__cu_len = (n); \
might_fault(); \
__cu_len = __invoke_copy_from_user(__cu_to, __cu_from, \
__cu_len); \
__cu_len; \
})

Definition at line 845 of file uaccess.h.

#define __copy_from_user_inatomic (   to,
  from,
  n 
)
Value:
({ \
void *__cu_to; \
const void __user *__cu_from; \
long __cu_len; \
\
__cu_to = (to); \
__cu_from = (from); \
__cu_len = (n); \
__cu_len = __invoke_copy_from_user_inatomic(__cu_to, __cu_from, \
__cu_len); \
__cu_len; \
})

Definition at line 738 of file uaccess.h.

#define __copy_in_user (   to,
  from,
  n 
)
Value:
({ \
void __user *__cu_to; \
const void __user *__cu_from; \
long __cu_len; \
\
__cu_to = (to); \
__cu_from = (from); \
__cu_len = (n); \
might_fault(); \
__cu_len = __invoke_copy_from_user(__cu_to, __cu_from, \
__cu_len); \
__cu_len; \
})

Definition at line 893 of file uaccess.h.

#define __copy_to_user (   to,
  from,
  n 
)
Value:
({ \
void __user *__cu_to; \
const void *__cu_from; \
long __cu_len; \
\
__cu_to = (to); \
__cu_from = (from); \
__cu_len = (n); \
might_fault(); \
__cu_len = __invoke_copy_to_user(__cu_to, __cu_from, __cu_len); \
__cu_len; \
})

Definition at line 709 of file uaccess.h.

#define __copy_to_user_inatomic (   to,
  from,
  n 
)
Value:
({ \
void __user *__cu_to; \
const void *__cu_from; \
long __cu_len; \
\
__cu_to = (to); \
__cu_from = (from); \
__cu_len = (n); \
__cu_len = __invoke_copy_to_user(__cu_to, __cu_from, __cu_len); \
__cu_len; \
})

Definition at line 725 of file uaccess.h.

#define __get_user (   x,
  ptr 
)    __get_user_nocheck((x), (ptr), sizeof(*(ptr)))

Definition at line 206 of file uaccess.h.

#define __get_user_asm (   val,
  insn,
  addr 
)
Value:
{ \
long __gu_tmp; \
\
__asm__ __volatile__( \
"1: " insn " %1, %3 \n" \
"2: \n" \
" .section .fixup,\"ax\" \n" \
"3: li %0, %4 \n" \
" j 2b \n" \
" .previous \n" \
" .section __ex_table,\"a\" \n" \
" "__UA_ADDR "\t1b, 3b \n" \
" .previous \n" \
: "=r" (__gu_err), "=r" (__gu_tmp) \
: "0" (0), "o" (__m(addr)), "i" (-EFAULT)); \
\
(val) = (__typeof__(*(addr))) __gu_tmp; \
}

Definition at line 257 of file uaccess.h.

#define __get_user_asm_ll32 (   val,
  addr 
)
Value:
{ \
union { \
unsigned long long l; \
__typeof__(*(addr)) t; \
} __gu_tmp; \
\
__asm__ __volatile__( \
"1: lw %1, (%3) \n" \
"2: lw %D1, 4(%3) \n" \
"3: .section .fixup,\"ax\" \n" \
"4: li %0, %4 \n" \
" move %1, $0 \n" \
" move %D1, $0 \n" \
" j 3b \n" \
" .previous \n" \
" .section __ex_table,\"a\" \n" \
" " __UA_ADDR " 1b, 4b \n" \
" " __UA_ADDR " 2b, 4b \n" \
" .previous \n" \
: "=r" (__gu_err), "=&r" (__gu_tmp.l) \
: "0" (0), "r" (addr), "i" (-EFAULT)); \
\
(val) = __gu_tmp.t; \
}

Definition at line 280 of file uaccess.h.

#define __get_user_check (   x,
  ptr,
  size 
)
Value:
({ \
int __gu_err = -EFAULT; \
const __typeof__(*(ptr)) __user * __gu_ptr = (ptr); \
\
might_fault(); \
if (likely(access_ok(VERIFY_READ, __gu_ptr, size))) \
__get_user_common((x), size, __gu_ptr); \
\
__gu_err; \
})

Definition at line 245 of file uaccess.h.

#define __get_user_common (   val,
  size,
  ptr 
)
Value:
do { \
switch (size) { \
case 1: __get_user_asm(val, "lb", ptr); break; \
case 2: __get_user_asm(val, "lh", ptr); break; \
case 4: __get_user_asm(val, "lw", ptr); break; \
case 8: __GET_USER_DW(val, ptr); break; \
default: __get_user_unknown(); break; \
} \
} while (0)

Definition at line 225 of file uaccess.h.

#define __get_user_nocheck (   x,
  ptr,
  size 
)
Value:
({ \
int __gu_err; \
__get_user_common((x), size, ptr); \
__gu_err; \
})

Definition at line 236 of file uaccess.h.

#define __get_user_unaligned (   x,
  ptr 
)    __get_user__unalignednocheck((x),(ptr),sizeof(*(ptr)))

Definition at line 472 of file uaccess.h.

#define __get_user_unaligned_asm (   val,
  insn,
  addr 
)
Value:
{ \
long __gu_tmp; \
\
__asm__ __volatile__( \
"1: " insn " %1, %3 \n" \
"2: \n" \
" .section .fixup,\"ax\" \n" \
"3: li %0, %4 \n" \
" j 2b \n" \
" .previous \n" \
" .section __ex_table,\"a\" \n" \
" "__UA_ADDR "\t1b, 3b \n" \
" "__UA_ADDR "\t1b + 4, 3b \n" \
" .previous \n" \
: "=r" (__gu_err), "=r" (__gu_tmp) \
: "0" (0), "o" (__m(addr)), "i" (-EFAULT)); \
\
(val) = (__typeof__(*(addr))) __gu_tmp; \
}

Definition at line 520 of file uaccess.h.

#define __get_user_unaligned_asm_ll32 (   val,
  addr 
)
Value:
{ \
unsigned long long __gu_tmp; \
\
__asm__ __volatile__( \
"1: ulw %1, (%3) \n" \
"2: ulw %D1, 4(%3) \n" \
" move %0, $0 \n" \
"3: .section .fixup,\"ax\" \n" \
"4: li %0, %4 \n" \
" move %1, $0 \n" \
" move %D1, $0 \n" \
" j 3b \n" \
" .previous \n" \
" .section __ex_table,\"a\" \n" \
" " __UA_ADDR " 1b, 4b \n" \
" " __UA_ADDR " 1b + 4, 4b \n" \
" " __UA_ADDR " 2b, 4b \n" \
" " __UA_ADDR " 2b + 4, 4b \n" \
" .previous \n" \
: "=r" (__gu_err), "=&r" (__gu_tmp) \
: "0" (0), "r" (addr), "i" (-EFAULT)); \
(val) = (__typeof__(*(addr))) __gu_tmp; \
}

Definition at line 544 of file uaccess.h.

#define __get_user_unaligned_check (   x,
  ptr,
  size 
)
Value:
({ \
int __gu_err = -EFAULT; \
const __typeof__(*(ptr)) __user * __gu_ptr = (ptr); \
\
if (likely(access_ok(VERIFY_READ, __gu_ptr, size))) \
\
__gu_err; \
})

Definition at line 509 of file uaccess.h.

#define __get_user_unaligned_common (   val,
  size,
  ptr 
)
Value:
do { \
switch (size) { \
case 1: __get_user_asm(val, "lb", ptr); break; \
case 2: __get_user_unaligned_asm(val, "ulh", ptr); break; \
case 4: __get_user_unaligned_asm(val, "ulw", ptr); break; \
case 8: __GET_USER_UNALIGNED_DW(val, ptr); break; \
default: __get_user_unaligned_unknown(); break; \
} \
} while (0)

Definition at line 490 of file uaccess.h.

#define __get_user_unaligned_nocheck (   x,
  ptr,
  size 
)
Value:
({ \
int __gu_err; \
__gu_err; \
})

Definition at line 501 of file uaccess.h.

#define __invoke_copy_from_user (   to,
  from,
  n 
)
Value:
({ \
register void *__cu_to_r __asm__("$4"); \
register const void __user *__cu_from_r __asm__("$5"); \
register long __cu_len_r __asm__("$6"); \
\
__cu_to_r = (to); \
__cu_from_r = (from); \
__cu_len_r = (n); \
__asm__ __volatile__( \
".set\tnoreorder\n\t" \
".set\tnoat\n\t" \
__UA_ADDU "\t$1, %1, %2\n\t" \
".set\tat\n\t" \
".set\treorder" \
: "+r" (__cu_to_r), "+r" (__cu_from_r), "+r" (__cu_len_r) \
: \
: "$8", "$9", "$10", "$11", "$12", "$14", "$15", "$24", "$31", \
DADDI_SCRATCH, "memory"); \
__cu_len_r; \
})

Definition at line 782 of file uaccess.h.

#define __invoke_copy_from_user_inatomic (   to,
  from,
  n 
)
Value:
({ \
register void *__cu_to_r __asm__("$4"); \
register const void __user *__cu_from_r __asm__("$5"); \
register long __cu_len_r __asm__("$6"); \
\
__cu_to_r = (to); \
__cu_from_r = (from); \
__cu_len_r = (n); \
__asm__ __volatile__( \
".set\tnoreorder\n\t" \
".set\tnoat\n\t" \
__UA_ADDU "\t$1, %1, %2\n\t" \
".set\tat\n\t" \
".set\treorder" \
: "+r" (__cu_to_r), "+r" (__cu_from_r), "+r" (__cu_len_r) \
: \
: "$8", "$9", "$10", "$11", "$12", "$14", "$15", "$24", "$31", \
DADDI_SCRATCH, "memory"); \
__cu_len_r; \
})

Definition at line 805 of file uaccess.h.

#define __invoke_copy_to_user (   to,
  from,
  n 
)
Value:
({ \
register void __user *__cu_to_r __asm__("$4"); \
register const void *__cu_from_r __asm__("$5"); \
register long __cu_len_r __asm__("$6"); \
\
__cu_to_r = (to); \
__cu_from_r = (from); \
__cu_len_r = (n); \
__asm__ __volatile__( \
: "+r" (__cu_to_r), "+r" (__cu_from_r), "+r" (__cu_len_r) \
: \
: "$8", "$9", "$10", "$11", "$12", "$14", "$15", "$24", "$31", \
DADDI_SCRATCH, "memory"); \
__cu_len_r; \
})

Definition at line 677 of file uaccess.h.

#define __m (   x)    (*(struct __large_struct __user *)(x))

Definition at line 210 of file uaccess.h.

#define __MODULE_JAL (   destination)    "jal\t" #destination "\n\t"

Definition at line 665 of file uaccess.h.

#define __put_user (   x,
  ptr 
)    __put_user_nocheck((x), (ptr), sizeof(*(ptr)))

Definition at line 183 of file uaccess.h.

#define __put_user_asm (   insn,
  ptr 
)
Value:
{ \
__asm__ __volatile__( \
"1: " insn " %z2, %3 # __put_user_asm\n" \
"2: \n" \
" .section .fixup,\"ax\" \n" \
"3: li %0, %4 \n" \
" j 2b \n" \
" .previous \n" \
" .section __ex_table,\"a\" \n" \
" " __UA_ADDR " 1b, 3b \n" \
" .previous \n" \
: "=r" (__pu_err) \
: "0" (0), "Jr" (__pu_val), "o" (__m(ptr)), \
"i" (-EFAULT)); \
}

Definition at line 353 of file uaccess.h.

#define __put_user_asm_ll32 (   ptr)
Value:
{ \
__asm__ __volatile__( \
"1: sw %2, (%3) # __put_user_asm_ll32 \n" \
"2: sw %D2, 4(%3) \n" \
"3: \n" \
" .section .fixup,\"ax\" \n" \
"4: li %0, %4 \n" \
" j 3b \n" \
" .previous \n" \
" .section __ex_table,\"a\" \n" \
" " __UA_ADDR " 1b, 4b \n" \
" " __UA_ADDR " 2b, 4b \n" \
" .previous" \
: "=r" (__pu_err) \
: "0" (0), "r" (__pu_val), "r" (ptr), \
"i" (-EFAULT)); \
}

Definition at line 370 of file uaccess.h.

#define __put_user_check (   x,
  ptr,
  size 
)
Value:
({ \
__typeof__(*(ptr)) __user *__pu_addr = (ptr); \
__typeof__(*(ptr)) __pu_val = (x); \
int __pu_err = -EFAULT; \
\
might_fault(); \
if (likely(access_ok(VERIFY_WRITE, __pu_addr, size))) { \
switch (size) { \
case 1: __put_user_asm("sb", __pu_addr); break; \
case 2: __put_user_asm("sh", __pu_addr); break; \
case 4: __put_user_asm("sw", __pu_addr); break; \
case 8: __PUT_USER_DW(__pu_addr); break; \
default: __put_user_unknown(); break; \
} \
} \
__pu_err; \
})

Definition at line 334 of file uaccess.h.

#define __put_user_nocheck (   x,
  ptr,
  size 
)
Value:
({ \
__typeof__(*(ptr)) __pu_val; \
int __pu_err = 0; \
\
__pu_val = (x); \
switch (size) { \
case 1: __put_user_asm("sb", ptr); break; \
case 2: __put_user_asm("sh", ptr); break; \
case 4: __put_user_asm("sw", ptr); break; \
case 8: __PUT_USER_DW(ptr); break; \
default: __put_user_unknown(); break; \
} \
__pu_err; \
})

Definition at line 317 of file uaccess.h.

#define __put_user_unaligned (   x,
  ptr 
)    __put_user_unaligned_nocheck((x),(ptr),sizeof(*(ptr)))

Definition at line 449 of file uaccess.h.

#define __put_user_unaligned_asm (   insn,
  ptr 
)
Value:
{ \
__asm__ __volatile__( \
"1: " insn " %z2, %3 # __put_user_unaligned_asm\n" \
"2: \n" \
" .section .fixup,\"ax\" \n" \
"3: li %0, %4 \n" \
" j 2b \n" \
" .previous \n" \
" .section __ex_table,\"a\" \n" \
" " __UA_ADDR " 1b, 3b \n" \
" .previous \n" \
: "=r" (__pu_err) \
: "0" (0), "Jr" (__pu_val), "o" (__m(ptr)), \
"i" (-EFAULT)); \
}

Definition at line 614 of file uaccess.h.

#define __put_user_unaligned_asm_ll32 (   ptr)
Value:
{ \
__asm__ __volatile__( \
"1: sw %2, (%3) # __put_user_unaligned_asm_ll32 \n" \
"2: sw %D2, 4(%3) \n" \
"3: \n" \
" .section .fixup,\"ax\" \n" \
"4: li %0, %4 \n" \
" j 3b \n" \
" .previous \n" \
" .section __ex_table,\"a\" \n" \
" " __UA_ADDR " 1b, 4b \n" \
" " __UA_ADDR " 1b + 4, 4b \n" \
" " __UA_ADDR " 2b, 4b \n" \
" " __UA_ADDR " 2b + 4, 4b \n" \
" .previous" \
: "=r" (__pu_err) \
: "0" (0), "r" (__pu_val), "r" (ptr), \
"i" (-EFAULT)); \
}

Definition at line 631 of file uaccess.h.

#define __put_user_unaligned_check (   x,
  ptr,
  size 
)
Value:
({ \
__typeof__(*(ptr)) __user *__pu_addr = (ptr); \
__typeof__(*(ptr)) __pu_val = (x); \
int __pu_err = -EFAULT; \
\
if (likely(access_ok(VERIFY_WRITE, __pu_addr, size))) { \
switch (size) { \
case 1: __put_user_asm("sb", __pu_addr); break; \
case 2: __put_user_unaligned_asm("ush", __pu_addr); break; \
case 4: __put_user_unaligned_asm("usw", __pu_addr); break; \
case 8: __PUT_USER_UNALGINED_DW(__pu_addr); break; \
default: __put_user_unaligned_unknown(); break; \
} \
} \
__pu_err; \
})

Definition at line 596 of file uaccess.h.

#define __put_user_unaligned_nocheck (   x,
  ptr,
  size 
)
Value:
({ \
__typeof__(*(ptr)) __pu_val; \
int __pu_err = 0; \
\
__pu_val = (x); \
switch (size) { \
case 1: __put_user_asm("sb", ptr); break; \
case 2: __put_user_unaligned_asm("ush", ptr); break; \
case 4: __put_user_unaligned_asm("usw", ptr); break; \
case 8: __PUT_USER_UNALIGNED_DW(ptr); break; \
default: __put_user_unaligned_unknown(); break; \
} \
__pu_err; \
})

Definition at line 580 of file uaccess.h.

#define __ua_size (   size)    ((__builtin_constant_p(size) && (signed long) (size) > 0) ? 0 : (size))

Definition at line 84 of file uaccess.h.

#define access_ok (   type,
  addr,
  size 
)    likely(__access_ok((addr), (size), __access_mask))

Definition at line 122 of file uaccess.h.

#define clear_user (   addr,
  n 
)
Value:
({ \
void __user * __cl_addr = (addr); \
unsigned long __cl_size = (n); \
if (__cl_size && access_ok(VERIFY_WRITE, \
__cl_addr, __cl_size)) \
__cl_size = __clear_user(__cl_addr, __cl_size); \
__cl_size; \
})

Definition at line 956 of file uaccess.h.

#define copy_from_user (   to,
  from,
  n 
)
Value:
({ \
void *__cu_to; \
const void __user *__cu_from; \
long __cu_len; \
\
__cu_to = (to); \
__cu_from = (from); \
__cu_len = (n); \
if (access_ok(VERIFY_READ, __cu_from, __cu_len)) { \
might_fault(); \
__cu_len = __invoke_copy_from_user(__cu_to, __cu_from, \
__cu_len); \
} \
__cu_len; \
})

Definition at line 876 of file uaccess.h.

#define copy_in_user (   to,
  from,
  n 
)
Value:
({ \
void __user *__cu_to; \
const void __user *__cu_from; \
long __cu_len; \
\
__cu_to = (to); \
__cu_from = (from); \
__cu_len = (n); \
if (likely(access_ok(VERIFY_READ, __cu_from, __cu_len) && \
access_ok(VERIFY_WRITE, __cu_to, __cu_len))) { \
might_fault(); \
__cu_len = __invoke_copy_from_user(__cu_to, __cu_from, \
__cu_len); \
} \
__cu_len; \
})

Definition at line 908 of file uaccess.h.

#define copy_to_user (   to,
  from,
  n 
)
Value:
({ \
void __user *__cu_to; \
const void *__cu_from; \
long __cu_len; \
\
__cu_to = (to); \
__cu_from = (from); \
__cu_len = (n); \
if (access_ok(VERIFY_WRITE, __cu_to, __cu_len)) { \
might_fault(); \
__cu_len = __invoke_copy_to_user(__cu_to, __cu_from, \
__cu_len); \
} \
__cu_len; \
})

Definition at line 765 of file uaccess.h.

#define DADDI_SCRATCH   "$0"

Definition at line 670 of file uaccess.h.

#define get_ds (   void)    (KERNEL_DS)

Definition at line 64 of file uaccess.h.

#define get_fs (   void)    (current_thread_info()->addr_limit)

Definition at line 65 of file uaccess.h.

#define get_user (   x,
  ptr 
)    __get_user_check((x), (ptr), sizeof(*(ptr)))

Definition at line 161 of file uaccess.h.

#define get_user_unaligned (   x,
  ptr 
)    __get_user_unaligned_check((x),(ptr),sizeof(*(ptr)))

Definition at line 427 of file uaccess.h.

#define KERNEL_DS   ((mm_segment_t) { 0UL })

Definition at line 58 of file uaccess.h.

#define put_user (   x,
  ptr 
)    __put_user_check((x), (ptr), sizeof(*(ptr)))

Definition at line 141 of file uaccess.h.

#define put_user_unaligned (   x,
  ptr 
)    __put_user_unaligned_check((x),(ptr),sizeof(*(ptr)))

Definition at line 407 of file uaccess.h.

#define segment_eq (   a,
  b 
)    ((a).seg == (b).seg)

Definition at line 68 of file uaccess.h.

#define set_fs (   x)    (current_thread_info()->addr_limit = (x))

Definition at line 66 of file uaccess.h.

#define USER_DS   ((mm_segment_t) { __UA_LIMIT })

Definition at line 59 of file uaccess.h.

#define VERIFY_READ   0

Definition at line 61 of file uaccess.h.

#define VERIFY_WRITE   1

Definition at line 62 of file uaccess.h.

Function Documentation

size_t __copy_user ( void __to,
const void __from,
size_t  __n 
)

Definition at line 27 of file nommu.c.

size_t __copy_user_inatomic ( void __to,
const void __from,
size_t  __n 
)
void __get_user_unaligned_unknown ( void  )
void __get_user_unknown ( void  )
void __put_user_unaligned_unknown ( void  )
void __put_user_unknown ( void  )
int fixup_exception ( struct pt_regs regs)

Definition at line 7 of file extable.c.