.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "PROC_DOSTRING" "" "06 October 2005" "" ""
.SH NAME
proc_dostring \- read a string sysctl
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int proc_dostring (ctl_table * \fItable\fB, int \fIwrite\fB, struct file * \fIfilp\fB, void __user * \fIbuffer\fB, size_t * \fIlenp\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fItable\fB\fR
the sysctl table
.TP
\fB\fIwrite\fB\fR
TRUE if this is a write to the sysctl file
.TP
\fB\fIfilp\fB\fR
the file structure
.TP
\fB\fIbuffer\fB\fR
the user buffer
.TP
\fB\fIlenp\fB\fR
the size of the user buffer
.SH "DESCRIPTION"
.PP
Reads/writes a string from/to the user buffer. If the kernel
buffer provided is not large enough to hold the string, the
string is truncated. The copied string is NULL-terminated\&.
If the string is being read by the user process, it is copied
and a newline '\\n' is added. It is truncated if the buffer is
not large enough.
.PP
Returns 0 on success.