使用 modprobe 插入内核模块时,是否需要按特定顺序指定内核模块?

发布于 2024-10-01 01:28:31 字数 227 浏览 1 评论 0原文

我在 shell 脚本变量中有一个模块列表,我们将其称为 modulelist。其中一些模块已经加载。

我正在执行 modprobe -a $modulelist 并遇到分段错误,这是由于正在加载的模块之一造成的。

我的问题是:我是否必须修改变量 modulelist 中指定模块名称的顺序?我认为列表中模块的顺序不会产生影响,因为 modprobe -a 加载模块及其依赖的模块。

I have a list of modules in a shell script variable, lets call it modulelist. Some of those modules are already loaded.

I am doing modprobe -a $modulelist and running into a segmentation fault, which is due to one of the modules that is being loaded.

My question is : Do I have to modify the order in which module names are specified in the variable modulelist ? I thought that the order of modules in the list would not make a difference since modprobe -a loads the modules and the modules they depend on.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

别靠近我心 2024-10-08 01:28:31

不确定它对您有多大帮助,但也许您应该尝试使用 --show-depends 或 -n -v 选项运行,看看更多信息是否有助于诊断问题

您可能还想检查与创建依赖项列表有关的 depmod 命令

not sure how much it will help you but maybe you should try to run with either --show-depends or -n -v options and see if more information help diagnose the issue

also you might want to check the depmod command which is concerned with creating dependency list

怎樣才叫好 2024-10-08 01:28:31

应该没关系,而且绝对不应该出现段错误。

It shouldn't matter, and it definitely shouldn't segfault.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文