HomeFreeBSD

libspl: implement ZFS_MODULE_PARAM for userspace

Description

libspl: implement ZFS_MODULE_PARAM for userspace

For each tunable declaration, we create a zfs_tunable_t with its
details, and then a pointer to it in the 'zfs_tunables' ELF section,
that we can access later with a little support from the linker.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #17537

Details

Provenance
rob.norris_klarasystems.comAuthored on Jul 12 2025, 1:31 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jul 15 2025, 10:46 PM
Parents
rG3a494c6d2ac1: mod.h: make consistent across all three platforms
Branches
Unknown
Tags
Unknown