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

前端之家收集整理的这篇文章主要介绍了linux-kernel – 重启后insmod命令安装的模块会不会存在?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在阅读的书如何描述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.
原文链接:https://www.f2er.com/linux/399364.html

猜你在找的Linux相关文章