HomeFreeBSD

Linux 6.5 compat: register_sysctl_table removed

Description

Linux 6.5 compat: register_sysctl_table removed

Additionally, the .child element of ctl_table has been removed in 6.5.
This change adds a new test for the pre-6.5 register_sysctl_table()
function, and uses the old code in that case. If it isn't found, then
the parentage entries in the tables are removed, and the register_sysctl
call is provided the paths of "kernel/spl", "kernel/spl/kmem", and
"kernel/spl/kstat" directly, to populate each subdirectory over three
calls, as is the new API.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #15098

Details

Provenance
Coleman Kane <ckane@colemankane.org>Authored on Aug 1 2023, 3:27 PM
Tony Hutter <hutter2@llnl.gov>Committed on Sep 11 2023, 10:18 PM
Parents
rGe45ca514e842: Linux 6.5 compat: disk_check_media_change() was added
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG211868b5d01b: Linux 6.5 compat: register_sysctl_table removed (authored by Coleman Kane <ckane@colemankane.org>).Sep 11 2023, 10:18 PM