Lines Matching refs:max
12 * 'count' is the user-supplied count, while 'max' is the
21 * the return value against "> max".
23 static __always_inline long do_strnlen_user(const char __user *src, unsigned long count, unsigned long max)
35 max += align;
49 if (unlikely(max <= sizeof(unsigned long)))
51 max -= sizeof(unsigned long);
57 * Uhhuh. We hit 'max'. But was that the user-specified maximum
102 unsigned long max = max_addr - src_addr;
106 * Truncate 'max' to the user-specified limit, so that
109 if (max > count)
110 max = count;
112 if (user_read_access_begin(str, max)) {
113 retval = do_strnlen_user(str, count, max);