[英]Passing parameter to builtin kernel module at compile time
Is there a way to pass parameter to builtin kernel module while compiling the linux kernel? 有没有一种方法可以在编译linux内核时将参数传递给内置内核模块? If yes, can you please explain how? 如果是,请解释一下吗? I want to pass value for max_bonds to bonding driver which is builtin module in my kernel. 我想将max_bonds的值传递给内核中内置模块的bonding驱动程序。
Linux kernel version - 2.6 Linux内核版本-2.6
You can use two kernel features to accomplish this: 您可以使用两个内核功能来完成此任务:
By using those two features, I think you get pretty much exactly what you want, without modifying any kernel source, just tweaking your config file. 通过使用这两个功能,我认为您几乎完全可以得到所需的内容,而无需修改任何内核源代码,只需调整配置文件即可。
I think it is possible by changing modules source. 我认为可以通过更改模块源来实现。 Each modules parameter has its default value coded in sources - just modify it. 每个模块参数在源代码中都有其默认值-只需对其进行修改。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.