]> rtime.felk.cvut.cz Git - zynq/linux.git/blobdiff - lib/strnlen_user.c
Merge branch '4.0.8-rt6'
[zynq/linux.git] / lib / strnlen_user.c
index 11649615c50504cb5976d58c8bf012d563bf2bbc..5f8b3e8e4116fbf8a691fe303cc7417a9c0287de 100644 (file)
@@ -85,7 +85,8 @@ static inline long do_strnlen_user(const char __user *src, unsigned long count,
  * @str: The string to measure.
  * @count: Maximum count (including NUL character)
  *
- * Context: User context only.  This function may sleep.
+ * Context: User context only. This function may sleep if pagefaults are
+ *          enabled.
  *
  * Get the size of a NUL-terminated string in user space.
  *
@@ -114,7 +115,8 @@ EXPORT_SYMBOL(strnlen_user);
  * strlen_user: - Get the size of a user string INCLUDING final NUL.
  * @str: The string to measure.
  *
- * Context: User context only.  This function may sleep.
+ * Context: User context only. This function may sleep if pagefaults are
+ *          enabled.
  *
  * Get the size of a NUL-terminated string in user space.
  *