• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/include/asm-m32r/

Lines Matching defs:to

65  * This is equivalent to the following test:
89 * to write to a block, it is always safe to read from it.
90 * @addr: User space pointer to start of block to check
91 * @size: Size of block to check
95 * Checks if a pointer to a block of memory in user space is valid.
118 * address of an instruction that is allowed to fault, and the second is
120 * modified, so it is entirely up to the continuation code to figure out
121 * what to do.
125 * we don't even have to jump over them. Further, they do not intrude
140 * This gets kind of ugly. We want to return _two_ values in "get_user()"
141 * and yet we don't want to do any pointers, because that is too much
148 * accesses to the same area of user memory).
151 /* Careful: we have to cast the result to the type of the pointer for sign
155 * @x: Variable to store result.
160 * This macro copies a single simple variable from user space to kernel
164 * @ptr must have pointer-to-simple-variable type, and the result of
165 * dereferencing @ptr must be assignable to @x without a cast.
168 * On error, the variable @x is set to zero.
175 * @x: Value to copy to user space.
180 * This macro copies a single simple value from kernel space to user
184 * @ptr must have pointer-to-simple-variable type, and @x must be assignable
185 * to the result of dereferencing @ptr.
194 * @x: Variable to store result.
199 * This macro copies a single simple variable from user space to kernel
203 * @ptr must have pointer-to-simple-variable type, and the result of
204 * dereferencing @ptr must be assignable to @x without a cast.
210 * On error, the variable @x is set to zero.
274 * @x: Value to copy to user space.
279 * This macro copies a single simple value from kernel space to user
283 * @ptr must have pointer-to-simple-variable type, and @x must be assignable
284 * to the result of dereferencing @ptr.
387 * we do not write to any memory gcc knows about, so there are no
424 #define __copy_user(to,from,size) \
477 : "0" (to), "1" (from), "2" (size), "3" (size / 4) \
481 #define __copy_user_zeroing(to,from,size) \
540 : "0" (to), "1" (from), "2" (size), "3" (size / 4) \
548 static inline unsigned long __generic_copy_from_user_nocheck(void *to,
551 __copy_user_zeroing(to,from,n);
555 static inline unsigned long __generic_copy_to_user_nocheck(void __user *to,
558 __copy_user(to,from,n);
567 * @to: Destination address, in user space.
569 * @n: Number of bytes to copy.
573 * Copy data from kernel space to user space. Caller must check
579 #define __copy_to_user(to,from,n) \
580 __generic_copy_to_user_nocheck((to),(from),(n))
587 * @to: Destination address, in user space.
589 * @n: Number of bytes to copy.
593 * Copy data from kernel space to user space.
598 #define copy_to_user(to,from,n) \
601 __generic_copy_to_user((to),(from),(n)); \
605 * __copy_from_user: - Copy a block of data from user space, with less checking. * @to: Destination address, in kernel space.
607 * @n: Number of bytes to copy.
611 * Copy data from user space to kernel space. Caller must check
618 * data to the requested size using zero bytes.
620 #define __copy_from_user(to,from,n) \
621 __generic_copy_from_user_nocheck((to),(from),(n))
625 * @to: Destination address, in kernel space.
627 * @n: Number of bytes to copy.
631 * Copy data from user space to kernel space.
637 * data to the requested size using zero bytes.
639 #define copy_from_user(to,from,n) \
642 __generic_copy_from_user((to),(from),(n)); \
652 * @to: Destination address, in user space.
653 * @n: Number of bytes to zero.
665 * @to: Destination address, in user space.
666 * @n: Number of bytes to zero.
678 * @str: The string to measure.
687 * If there is a limit on the length of a valid string, you may wish to