summaryrefslogtreecommitdiffstats
path: root/sys/ofed/drivers/infiniband/util/madeye.c
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2016-05-25 12:03:21 +0000
committerhselasky <hselasky@FreeBSD.org>2016-05-25 12:03:21 +0000
commit0d8f1c25a265d68105325be3bc9678389fbce43e (patch)
tree73f54a7eb35fc5a4152b6c01d5c2eba818c792ba /sys/ofed/drivers/infiniband/util/madeye.c
parent738d07cfc5e98f5ee607466cbbff2ccf43f911b0 (diff)
downloadFreeBSD-src-0d8f1c25a265d68105325be3bc9678389fbce43e.zip
FreeBSD-src-0d8f1c25a265d68105325be3bc9678389fbce43e.tar.gz
Prepare for activation of LinuxKPI module parameters as read-only
tunable SYSCTL's. Linux module parameters are associated with the module they belong to. FreeBSD does not share this concept of a parent module. Instead add macros which define the prefix to use for the module parameters in the LinuxKPI consumers. While at it convert all "bool" LinuxKPI module parameters to "byte" type, because we don't have a "bool" type of SYSCTL in FreeBSD. Sponsored by: Mellanox Technologies MFC after: 1 week
Diffstat (limited to 'sys/ofed/drivers/infiniband/util/madeye.c')
-rw-r--r--sys/ofed/drivers/infiniband/util/madeye.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/ofed/drivers/infiniband/util/madeye.c b/sys/ofed/drivers/infiniband/util/madeye.c
index 2c650a3..975c7d9 100644
--- a/sys/ofed/drivers/infiniband/util/madeye.c
+++ b/sys/ofed/drivers/infiniband/util/madeye.c
@@ -32,6 +32,9 @@
*
* $Id$
*/
+
+#define LINUXKPI_PARAM_PREFIX ib_madeye_
+
#include <linux/module.h>
#include <linux/device.h>
#include <linux/err.h>
OpenPOWER on IntegriCloud