1STRLEN_USER(9) Memory Management in Linux STRLEN_USER(9)
2
3
4
6 strlen_user - Get the size of a string in user space.
7
9 strlen_user(str);
10
12 str
13 The string to measure.
14
16 User context only. This function may sleep.
17
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.
23
24 If there is a limit on the length of a valid string, you may wish to
25 consider using strnlen_user instead.
26
28Kernel Hackers Manual 2.6. June 2019 STRLEN_USER(9)