Linux – how to get parameters of Linux module when it is compiled NOT as a module

linuxtcp

when a part of Linux Kernel is compiled as a module on could read available parameters with modinfo and set them when loading with modprobe.

Is it possible to get the values of paramters of something that is configured as part of the kernel?

In particular TCP Cubic is not a module on Ubuntu. Cubic contains a parameter hystart to enable and disable hybrid slow start and two more parameters that affect its behavior. Can I somehow read the values of these parameters?

Best Answer

You can find the module parameters in /sys/module/tcp_cubic/parameters no matter whether tcp_cubic is built as a module or into the kernel.