1PROC_DOSTRING(9) The proc filesystem PROC_DOSTRING(9)
2
3
4
6 proc_dostring - read a string sysctl
7
9 int proc_dostring(struct ctl_table * table, int write,
10 void __user * buffer, size_t * lenp, loff_t * ppos);
11
13 table
14 the sysctl table
15
16 write
17
18 TRUE if this is a write to the sysctl file
19
20 buffer
21 the user buffer
22
23 lenp
24 the size of the user buffer
25
26 ppos
27 file position
28
30 Reads/writes a string from/to the user buffer. If the kernel buffer
31 provided is not large enough to hold the string, the string is
32 truncated. The copied string is NULL-terminated. If the string is being
33 read by the user process, it is copied and a newline '\n' is added. It
34 is truncated if the buffer is not large enough.
35
36 Returns 0 on success.
37
39Kernel Hackers Manual 2.6. November 2011 PROC_DOSTRING(9)