]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Implement Linux module parameters as read-only tunable SYSCTLs.
authorhselasky <hselasky@FreeBSD.org>
Wed, 25 May 2016 12:12:14 +0000 (12:12 +0000)
committerhselasky <hselasky@FreeBSD.org>
Wed, 25 May 2016 12:12:14 +0000 (12:12 +0000)
commit6427f98e8cb4177e3bbc82b39742d3747f633143
tree7bc1f289a569cdf0b15b1608578c78be6dd0113b
parent0d8f1c25a265d68105325be3bc9678389fbce43e
Implement Linux module parameters as read-only tunable SYSCTLs.

Bool module parameters are no longer supported, because there is no
equivalent in FreeBSD.

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.

Sponsored by: Mellanox Technologies
MFC after: 1 week
sys/compat/linuxkpi/common/include/linux/moduleparam.h
sys/compat/linuxkpi/common/src/linux_compat.c