1STRNLEN_USER(9) Memory Management in Linux STRNLEN_USER(9)
2
3
4
6 strnlen_user - Get the size of a string in user space.
7
9 long strnlen_user(const char __user * s, long n);
10
12 s
13 The string to measure.
14
15 n
16 The maximum valid length
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. If the string is too long, returns a value
23 greater than n.
24
26Kernel Hackers Manual 2.6. November 2011 STRNLEN_USER(9)