mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
linuxkpi: Introduce module_param() of type hexint
In Linux, this affects how the value is formatted. In FreeBSD, this remains an unsigned integer. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D36958
This commit is contained in:
parent
c72dd0aabe
commit
0b8a423d07
1 changed files with 6 additions and 0 deletions
|
|
@ -90,6 +90,12 @@
|
|||
LINUXKPI_PARAM_NAME(name), LINUXKPI_PARAM_PERM(perm), &(var), 0, \
|
||||
LINUXKPI_PARAM_DESC(name)))
|
||||
|
||||
#define LINUXKPI_PARAM_hexint(name, var, perm) \
|
||||
extern const char LINUXKPI_PARAM_DESC(name)[]; \
|
||||
LINUXKPI_PARAM_PASS(SYSCTL_UINT(LINUXKPI_PARAM_PARENT, OID_AUTO, \
|
||||
LINUXKPI_PARAM_NAME(name), LINUXKPI_PARAM_PERM(perm), &(var), 0, \
|
||||
LINUXKPI_PARAM_DESC(name)))
|
||||
|
||||
#define LINUXKPI_PARAM_long(name, var, perm) \
|
||||
extern const char LINUXKPI_PARAM_DESC(name)[]; \
|
||||
LINUXKPI_PARAM_PASS(SYSCTL_LONG(LINUXKPI_PARAM_PARENT, OID_AUTO, \
|
||||
|
|
|
|||
Loading…
Reference in a new issue