finding the value of a kernel module parameter: modprobe / modinfo?
I often use modprobe to set a value of a parameter for a kernel module:
modprobe bnx2 disable_msi=1
But before doing that sometimes I want to check what the current setting of the "disable_msi" option is. Is there a way to check this?
I did try "modinfo -p bnx2"
enable_entropy:Allow bnx2 to populate the /dev/random entropy pool
disable_msi:Disable Message Signaled Interrupt (MSI)
But this seems to just list the available options without really telling me what the current set value is.
re:finding the value of a kernel module parameter: modprobe / modinfo?
I had the same question and a post on linuxquestions (show-options-that-kernel-module-was-loaded-with #3) pointed out that some modules choose to expose their parameter values through /sys but are not required to do so:
(I was lucky and the one I was interested in was there.)
$ cat /sys/module/<module_name>/parameters/<param_name>