'\" t .\" Title: proc_doulongvec_minmax .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: The proc filesystem .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "PROC_DOULONGVEC_MINM" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "The proc filesystem" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" proc_doulongvec_minmax \- read a vector of long integers with min/max values .SH "SYNOPSIS" .HP \w'int\ proc_doulongvec_minmax('u .BI "int proc_doulongvec_minmax(struct\ ctl_table\ *\ " "table" ", int\ " "write" ", void\ __user\ *\ " "buffer" ", size_t\ *\ " "lenp" ", loff_t\ *\ " "ppos" ");" .SH "ARGUMENTS" .PP \fItable\fR .RS 4 the sysctl table .RE .PP \fIwrite\fR .RS 4 \fBTRUE\fR if this is a write to the sysctl file .RE .PP \fIbuffer\fR .RS 4 the user buffer .RE .PP \fIlenp\fR .RS 4 the size of the user buffer .RE .PP \fIppos\fR .RS 4 file position .RE .SH "DESCRIPTION" .PP Reads/writes up to table\->maxlen/sizeof(unsigned long) unsigned long values from/to the user buffer, treated as an ASCII string\&. .PP This routine will ensure the values are within the range specified by table\->extra1 (min) and table\->extra2 (max)\&. .PP Returns 0 on success\&. .SH "COPYRIGHT" .br