1STRNLEN_USER(9)           Memory Management in Linux           STRNLEN_USER(9)
2
3
4

NAME

6       strnlen_user - Get the size of a string in user space.
7

SYNOPSIS

9       long strnlen_user(const char __user * s, long n);
10

ARGUMENTS

12       s
13           The string to measure.
14
15       n
16           The maximum valid length
17

DESCRIPTION

19       Get the size of a NUL-terminated string in user space.
20
21       Returns the size of the string INCLUDING the terminating NUL. On
22       exception, returns 0. If the string is too long, returns a value
23       greater than n.
24
26Kernel Hackers Manual 2.6.         June 2019                   STRNLEN_USER(9)
Impressum