1PROC_DOSTRING(9)              The proc filesystem             PROC_DOSTRING(9)
2
3
4

NAME

6       proc_dostring - read a string sysctl
7

SYNOPSIS

9       int proc_dostring(struct ctl_table * table, int write,
10                         void __user * buffer, size_t * lenp, loff_t * ppos);
11

ARGUMENTS

13       table
14           the sysctl table
15
16       write
17           TRUE if this is a write to the sysctl file
18
19       buffer
20           the user buffer
21
22       lenp
23           the size of the user buffer
24
25       ppos
26           file position
27

DESCRIPTION

29       Reads/writes a string from/to the user buffer. If the kernel buffer
30       provided is not large enough to hold the string, the string is
31       truncated. The copied string is NULL-terminated. If the string is being
32       read by the user process, it is copied and a newline '\n' is added. It
33       is truncated if the buffer is not large enough.
34
35       Returns 0 on success.
36
38Kernel Hackers Manual 3.10         June 2019                  PROC_DOSTRING(9)
Impressum