linuxkpi: Introduce module_param() of type bint
In Linux, this limits the accepted value to -1, 0 and 1. In FreeBSD, this remains a signed integer with no specific constraints. This change is a requirement to update our DRM drivers to Linux 5.12. Differential Revision: https://reviews.freebsd.org/D37364
This commit is contained in:
committed by
Emmanuel Vadot
parent
0adc02a979
commit
e101c1c2c9
@@ -90,6 +90,9 @@
|
||||
LINUXKPI_PARAM_NAME(name), LINUXKPI_PARAM_PERM(perm), &(var), 0, \
|
||||
LINUXKPI_PARAM_DESC(name)))
|
||||
|
||||
#define LINUXKPI_PARAM_bint(name, var, perm) \
|
||||
LINUXKPI_PARAM_int(name, var, perm)
|
||||
|
||||
#define LINUXKPI_PARAM_hexint(name, var, perm) \
|
||||
extern const char LINUXKPI_PARAM_DESC(name)[]; \
|
||||
LINUXKPI_PARAM_PASS(SYSCTL_UINT(LINUXKPI_PARAM_PARENT, OID_AUTO, \
|
||||
|
||||
Reference in New Issue
Block a user