]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r289568, r300676, r300677, r300719, r300720 and r300721:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 17 Oct 2017 11:20:32 +0000 (11:20 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 17 Oct 2017 11:20:32 +0000 (11:20 +0000)
commitd303b1691d5ba15af3948fa79b20ee0adb700def
treedd6ea17d1a68dc8249bf932f1e2981585c716c76
parentc11d9c6ac81063728809181b4da9b1a6cd8ba12b
MFC r289568, r300676, r300677, r300719, r300720 and r300721:
Implement LinuxKPI module parameters as SYSCTLs.

The bool module parameter is no longer supported, because there is no
equivalent in FreeBSD 10-stable. These are converted into "int" type.

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.

The LinuxKPI module parameters also have a permissions value.
If any write bits are set we are allowed to modify the module
parameter runtime. Reflect this when creating the static SYSCTL
nodes.

The module_param_call() function is no longer supported.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@324685 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
24 files changed:
sys/dev/cxgbe/iw_cxgbe/provider.c
sys/dev/mlx5/mlx5_core/mlx5_main.c
sys/ofed/drivers/infiniband/core/cma.c
sys/ofed/drivers/infiniband/core/local_sa.c
sys/ofed/drivers/infiniband/core/mad.c
sys/ofed/drivers/infiniband/core/multicast.c
sys/ofed/drivers/infiniband/core/umem.c
sys/ofed/drivers/infiniband/core/uverbs_cmd.c
sys/ofed/drivers/infiniband/debug/memtrack.c
sys/ofed/drivers/infiniband/hw/mlx4/main.c
sys/ofed/drivers/infiniband/hw/mthca/mthca_catas.c
sys/ofed/drivers/infiniband/hw/mthca/mthca_cmd.c
sys/ofed/drivers/infiniband/hw/mthca/mthca_main.c
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib.h
sys/ofed/drivers/infiniband/ulp/sdp/sdp.h
sys/ofed/drivers/infiniband/util/madeye.c
sys/ofed/drivers/net/mlx4/catas.c
sys/ofed/drivers/net/mlx4/en_main.c
sys/ofed/drivers/net/mlx4/en_tx.c
sys/ofed/drivers/net/mlx4/fw.c
sys/ofed/drivers/net/mlx4/main.c
sys/ofed/drivers/net/mlx4/port.c
sys/ofed/include/linux/linux_compat.c
sys/ofed/include/linux/moduleparam.h