summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorJoel Granados <joel.granados@kernel.org>2025-10-14 15:21:03 +0300
committerJoel Granados <joel.granados@kernel.org>2025-11-27 17:45:37 +0300
commit30baaeb685bce0b7dfd3c5a55f22b1076c21f7b2 (patch)
tree47d6299e3f2e62ad76eee9579efee0b2cae03824 /scripts/patch-kernel
parent4639faaa607f3bed85f2cdde686a88453c99ef06 (diff)
downloadlinux-30baaeb685bce0b7dfd3c5a55f22b1076c21f7b2.tar.xz
sysctl: Create pipe-max-size converter using sysctl UINT macros
Create a converter for the pipe-max-size proc_handler using the SYSCTL_UINT_CONV_CUSTOM. Move SYSCTL_CONV_IDENTITY macro to the sysctl header to make it available for pipe size validation. Keep returning -EINVAL when (val == 0) by using a range checking converter and setting the minimal valid value (extern1) to SYSCTL_ONE. Keep round_pipe_size by passing it as the operation for SYSCTL_USER_TO_KERN_INT_CONV. Signed-off-by: Joel Granados <joel.granados@kernel.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions