您可以通过引导参数将选项传递给 linux 内核模块吗?

cou*_*ten 4 linux kernel-module

我有一个问题,该问题已通过更改 lpfc 驱动程序以使用 MSI 中断运行来解决。这是通过添加“options lpfc lpfc_use_msi=2”/etc/modprobe.conf.local 文件来完成的。

有没有办法使用内核引导参数进行此更改?

Jul*_*ano 5

来自Linux 内核文档

Module parameters for modules that are built into the kernel image
are specified on the kernel command line with the module name plus
'.' plus parameter name, with '=' and value if appropriate, such as:

    usbcore.blinkenlights=1
Run Code Online (Sandbox Code Playgroud)

请注意,这是针对内核中内置的模块。如果它被编译为可加载模块,则必须在内核启动后的某个时间对其进行 modprobe,这是将参数传递给模块的正确时间。