sysctl: add proc_dou8vec_minmax()
authorEric Dumazet <edumazet@google.com>
Thu, 25 Mar 2021 18:08:13 +0000 (11:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Mar 2021 00:39:33 +0000 (17:39 -0700)
commitcb9444130662c6c13022579c861098f212db2562
tree8284fffb678daa077898d0d65f36e6e9488585e1
parentd54e1348d8ef19d5b2cd555e22ffc356f755d66e
sysctl: add proc_dou8vec_minmax()

Networking has many sysctls that could fit in one u8.

This patch adds proc_dou8vec_minmax() for this purpose.

Note that the .extra1 and .extra2 fields are pointing
to integers, because it makes conversions easier.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
fs/proc/proc_sysctl.c
include/linux/sysctl.h
kernel/sysctl.c