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

NAME

6       proc_douintvec_minmax - read a vector of unsigned ints with min/max
7       values
8

SYNOPSIS

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

ARGUMENTS

15       table
16           the sysctl table
17
18       write
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) unsigned integer
32       values from/to the user buffer, treated as an ASCII string. Negative
33       strings are not allowed.
34
35       This routine will ensure the values are within the range specified by
36       table->extra1 (min) and table->extra2 (max). There is a final sanity
37       check for UINT_MAX to avoid having to support wrap around uses from
38       userspace.
39
40       Returns 0 on success.
41
43Kernel Hackers Manual 3.10         June 2019           PROC_DOUINTVEC_MINMA(9)
Impressum