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 Atkinson <batkinson@lanl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #15138

Details

Provenance
Coleman Kane <ckane@colemankane.org>Authored on Aug 2 2023, 9:05 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Sep 19 2023, 3:50 PM
Parents
rG3a68f3c50f82: Revert "Linux 6.5 compat: register_sysctl_table removed"
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG31a4673c05ea: Linux 6.5 compat: register_sysctl_table removed (authored by Coleman Kane <ckane@colemankane.org>).Sep 19 2023, 3:50 PM