diff options
Diffstat (limited to 'include/asm-i386/uaccess.h')
-rw-r--r-- | include/asm-i386/uaccess.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-i386/uaccess.h b/include/asm-i386/uaccess.h index 8462f8e0e658..d0d253277be5 100644 --- a/include/asm-i386/uaccess.h +++ b/include/asm-i386/uaccess.h | |||
@@ -458,6 +458,12 @@ __copy_to_user(void __user *to, const void *from, unsigned long n) | |||
458 | * | 458 | * |
459 | * If some data could not be copied, this function will pad the copied | 459 | * If some data could not be copied, this function will pad the copied |
460 | * data to the requested size using zero bytes. | 460 | * data to the requested size using zero bytes. |
461 | * | ||
462 | * An alternate version - __copy_from_user_inatomic() - may be called from | ||
463 | * atomic context and will fail rather than sleep. In this case the | ||
464 | * uncopied bytes will *NOT* be padded with zeros. See fs/filemap.h | ||
465 | * for explanation of why this is needed. | ||
466 | * FIXME this isn't implimented yet EMXIF | ||
461 | */ | 467 | */ |
462 | static __always_inline unsigned long | 468 | static __always_inline unsigned long |
463 | __copy_from_user_inatomic(void *to, const void __user *from, unsigned long n) | 469 | __copy_from_user_inatomic(void *to, const void __user *from, unsigned long n) |