HomeFreeBSD

MFC r289568, r300676, r300677, r300719, r300720 and r300721:

Description

MFC r289568, r300676, r300677, r300719, r300720 and r300721:
Implement LinuxKPI module parameters as SYSCTLs.

The bool module parameter is no longer supported, because there is no
equivalent in FreeBSD 10-stable. These are converted into "int" type.

There are two macros available which control the behaviour of the
LinuxKPI module parameters:

  • LINUXKPI_PARAM_PARENT allows the consumer to set the SYSCTL parent

where the modules parameters will be created.

  • LINUXKPI_PARAM_PREFIX defines a parameter name prefix, which is added to all created module parameters.

The LinuxKPI module parameters also have a permissions value.
If any write bits are set we are allowed to modify the module
parameter runtime. Reflect this when creating the static SYSCTL
nodes.

The module_param_call() function is no longer supported.

Sponsored by: Mellanox Technologies

Details

Provenance
hselaskyAuthored on
Parents
rS324684: Remove lib/libstand again, accidentally readded in r324683
Branches
Unknown
Tags
Unknown