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
Tony Hutter <hutter2@llnl.gov>Committed on Sep 11 2023, 11:33 PM
Parents
rG0ee7a0862719: Revert "Linux 6.5 compat: register_sysctl_table removed"
Branches
Unknown
Tags
Unknown

Event Timeline

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