]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe2a51c7fe7da124b3c4cff022790b90774e1f30
tree8284fffb678daa077898d0d65f36e6e9488585e1
parent473553719f35efbc9028366d747cc4b67854662d
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