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

NAME

6       proc_dointvec_minmax - read a vector of integers with min/max values
7

SYNOPSIS

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

ARGUMENTS

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

DESCRIPTION

31       Reads/writes up to table->maxlen/sizeof(unsigned int) integer values
32       from/to the user buffer, treated as an ASCII string.
33
34       This routine will ensure the values are within the range specified by
35       table->extra1 (min) and table->extra2 (max).
36
37       Returns 0 on success.
38
40Kernel Hackers Manual 2.6.       November 2011         PROC_DOINTVEC_MINMAX(9)
Impressum