Add support for boolean module parameters in the LinuxKPI.
Requested by: kmacy @ Sponsored by: Mellanox Technologies
This commit is contained in:
parent
84e717c4cf
commit
0bb3dd300b
@ -50,6 +50,12 @@
|
||||
#define LINUXKPI_PARAM_DESC(name) LINUXKPI_PARAM_CONCAT(linuxkpi_,LINUXKPI_PARAM_PREFIX,name,_desc)
|
||||
#define LINUXKPI_PARAM_NAME(name) LINUXKPI_PARAM_CONCAT(LINUXKPI_PARAM_PREFIX,name,,)
|
||||
|
||||
#define LINUXKPI_PARAM_bool(name, var) \
|
||||
extern const char LINUXKPI_PARAM_DESC(name)[]; \
|
||||
LINUXKPI_PARAM_PASS(SYSCTL_BOOL(LINUXKPI_PARAM_PARENT, OID_AUTO,\
|
||||
LINUXKPI_PARAM_NAME(name), CTLFLAG_RDTUN, &(var), 0, \
|
||||
LINUXKPI_PARAM_DESC(name)))
|
||||
|
||||
#define LINUXKPI_PARAM_byte(name, var) \
|
||||
extern const char LINUXKPI_PARAM_DESC(name)[]; \
|
||||
LINUXKPI_PARAM_PASS(SYSCTL_U8(LINUXKPI_PARAM_PARENT, OID_AUTO, \
|
||||
|
Loading…
x
Reference in New Issue
Block a user