例如,max_loop
模块有一个loop
选项。
一般来说,我如何知道内核模块支持哪些选项?或者,在哪里可以找到列表,我应该深入到源代码中吗?
最佳答案
内核文档中的Documentation/kernel-parameters.txt
将为您提供其中的许多模块,任何in模块都可以从modinfo
中收集。
# modinfo radeon
...
parm: no_wb:Disable AGP writeback for scratch registers (int)
parm: modeset:Disable/Enable modesetting (int)
parm: dynclks:Disable/Enable dynamic clocks (int)
parm: r4xx_atom:Enable ATOMBIOS modesetting for R4xx (int)
parm: vramlimit:Restrict VRAM for testing (int)
parm: agpmode:AGP Mode (-1 == PCI) (int)
parm: gartsize:Size of PCIE/IGP gart to setup in megabytes (32,64, etc) (int)
parm: benchmark:Run benchmark (int)
parm: test:Run tests (int)
parm: connector_table:Force connector table (int)
parm: tv:TV enable (0 = disable) (int)
parm: new_pll:Select new PLL code (int)
parm: audio:Audio enable (0 = disable) (int)
parm: disp_priority:Display Priority (0 = auto, 1 = normal, 2 = high) (int)
parm: hw_i2c:hw i2c engine enable (0 = disable) (int)
parm: pm:enable power management (0 = disable) (int)
关于linux - 如何获取Linux内核模块的选项列表?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/7625350/