Lines Matching defs:count
12 * 'count' is the user-supplied count, while 'max' is the
16 * space maximum), or 'count+1' if hitting the user-supplied
17 * maximum count.
23 static __always_inline long do_strnlen_user(const char __user *src, unsigned long count, unsigned long max)
60 if (res >= count)
61 return count+1;
74 * @count: Maximum count (including NUL character)
82 * If the string is too long, returns a number larger than @count. User
83 * has to check the return value against "> count".
84 * On exception (or invalid count), returns 0.
92 long strnlen_user(const char __user *str, long count)
96 if (unlikely(count <= 0))
109 if (max > count)
110 max = count;
113 retval = do_strnlen_user(str, count, max);