加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux-kernel – 重启后insmod命令安装的模块会不会存在?

发布时间:2020-12-13 17:06:02 所属栏目:Linux 来源:网络整理
导读:我正在阅读的书如何描述insmod实用程序: The program loads the module code and data into the kernel,which,in turn, performs a function similar to that of ld,in that it links any unresolved symbol in the module to the symbol table of the kern
我正在阅读的书如何描述insmod实用程序:

The program loads the module code and
data into the kernel,which,in turn,
performs a function similar to that of
ld,in that it links any unresolved
symbol in the module to the symbol
table of the kernel. Unlike the
linker,however,the kernel doesn’t
modify the module’s disk file,but
rather an in-memory copy.

看起来它不会持久,因为它在内存中,但我不确定.

解决方法

不,他们不会.重启后,您从头开始.

通常,对于每次重新启动后要加载的模块,都有一个配置文件,列出了在引导时自动加载的模块.

看看/ etc / modules.

人模块:

NAME
   /etc/modules - kernel modules to load at boot time

DESCRIPTION
   The  /etc/modules file contains the names of kernel modules that are to
   be loaded at boot time,one per line. Arguments can  be  given  in  the
   same line as the module name. Lines beginning with a '#' are ignored.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读