]> Gentwo Git Trees - linux/.git/commit
sysctl: Create macro for user-to-kernel uint converter
authorJoel Granados <joel.granados@kernel.org>
Thu, 16 Oct 2025 08:22:16 +0000 (10:22 +0200)
committerJoel Granados <joel.granados@kernel.org>
Thu, 27 Nov 2025 14:43:20 +0000 (15:43 +0100)
commitc3102febf43ba8a9ce5512a49103f42661659a16
treec2afa7aced9acfbd980e23f23db06b14b5e2e51d
parent0c1d2dc7cce78445f723d32b57f430c42316cab0
sysctl: Create macro for user-to-kernel uint converter

Replace sysctl_user_to_kern_uint_conv function with
SYSCTL_USER_TO_KERN_UINT_CONV macro that accepts u_ptr_op parameter for
value transformation. Replacing sysctl_kern_to_user_uint_conv is not
needed as it will only be used from within sysctl.c. This is a
preparation commit for creating a custom converter in fs/pipe.c. No
Functional changes are intended.

Signed-off-by: Joel Granados <joel.granados@kernel.org>
kernel/sysctl.c