1 命令介绍 编辑

简介

Linux命令:modprobe 。
功能说明:自动处理可载入模块。
语  法:modprobe [-acdlrtvV][--help][模块文件][符号名称 = 符号值]。
补充说明:modprobe可载入指定的个别模块,或是载入一组相依的模块。modprobe会根据depmod所产生的相依关系,决定要载入哪些模块。若在载入过程中发生错误,在modprobe会卸载整组的模块。

内容

1、modprobe 命令是根据depmod -a的输出/lib/modules/version/modules.dep来加载全部的所需要模块。
2、删除模块的命令是:modprobe -r filename。
3、系统启动后,正常工作的模块都在/proc/modules文件中列出。使用lsmod命令也可显示相同内容。
4、在内核中有一个“Automatic kernel module loading"功能被编译到了内核中。当用户尝试打开某类型的文件时,内核会根据需要尝试加载相应的模块。/etc/modules.conf或 /etc/modprobe.conf文件是一个自动处理内核模块的控制文件。

2相关信息编辑

参数

-a或--all  载入全部的模块。
-c或--show-conf  显示所有模块的设置信息。
-d或--debug  使用排错模式。
-l或--list  显示可用的模块。
-r或--remove  模块闲置不用时,即自动卸载模块。
-t或--type  指定模块类型。
-v或--verbose  执行时显示详细的信息。
-V或--version  显示版本信息。
-help  显示帮助。

操作

insmod 与 modprobe 都是载入 kernel module,不过一般差别于 modprobe 能够处理 module 载入的相依问题。
比方你要载入 a module,但是 a module 要求系统先载入 b module 时,直接用 insmod 挂入通常都会出现错误讯息,不过 modprobe 倒是能够知道先载入 b module 后才载入 a module,如此相依性就会满足。
不过 modprobe 并不是大神,不会厉害到知道 module 之间的相依性为何,该程式是读取 /lib/modules/2.6.xx/modules.dep 档案得知相依性的。而该档案是透过 depmod 程式所建立。
The modprobe and depmod utilities are intended to make a Linux modular kernel more manageable for all users, administrators and distribution maintainers. Modprobe uses a "Makefile"-like dependency file, created by depmod, to automatically load the relevant module(s) from the set of modules available in predefined directory trees. Modprobe is used to load a single module, a stack of dependent modules, or all modules that are marked with a specified tag. Modprobewill automatically load all base modules needed in a module stack, as described by the dependency file modules.dep. If the loading of one of these modules fails, the whole current stack of modules loaded in the current session will be unloaded automatically. Modprobe has two ways of loading modules. One way (the probe mode) will try to load a module out of a list (defined by pattern). Modprobe stops loading as soon as one module loads successfully. This could be used to autoload one Ethernet driver out of a list. The other way modprobe can be used is to load all modules from a list. With the option -r, modprobe will automatically unload a stack of modules, similar to the way rmmod -r does. Note that using just modprobe -r will clean up unused autoloaded modules and also perform the pre-and post-remove commands in the configuration file /etc/modules, /etc/modprobe.d/*. Combining the options -l and -t lists all available modules of a certain type. Option -c will print the currently used configuration (default + configuration file). To do autoclean every 2 minutes:
'''/2 ''' * ''' ''' test -f /proc/modules && /sbin/modprobe -r

modprobe 命令相关推荐

  1. linux modprobe命令参数及用法详解--linux加载模块命令

    From:  http://www.linuxso.com/command/modprobe.html modprobe(module probe) 功能说明:自动处理可载入模块. 语 法:modpr ...

  2. modprobe命令用于智能地向内核中加载模块或者从内核中移除模块

    modprobe命令用于智能地向内核中加载模块或者从内核中移除模块. modprobe可载入指定的个别模块,或是载入一组相依的模块.modprobe会根据depmod所产生的相依关系,决定要载入哪些模 ...

  3. Linux 系统设置 : modprobe 命令详解

    modprobe命令用于智能地向内核中加载模块或者从内核中移除模块. modprobe可载入指定的个别模块,或是载入一组相依的模块.modprobe会根据depmod所产生的相依关系,决定要载入哪些模 ...

  4. linux 删除模块命令,Linux系统中的Modprobe命令:添加和删除Linux内核模块的方法

    在本文中,我们将说明如何使用modprobe命令在Linux内核中添加和删除Linux内核模块.modprobe是kmod的一部分,kmod是一种二进制文件,可实现用于管理Linux内核模块的多个程序 ...

  5. linux不支持modprobe命令,Linux中modprobe命令起什么作用呢?

    摘要: 下文讲述Linux中modprobe的功能说明,如下所示: modprobe命令功能: 用于采用智能方式向内核中加载模块 或从内核中移除模块 modprobe命令的原理: modprobe命令 ...

  6. Linux常用命令——modprobe命令

    在线Linux命令查询工具(http://www.lzltool.com/LinuxCommand) modprobe 自动处理可载入模块 补充说明 modprobe命令用于智能地向内核中加载模块或者 ...

  7. modprobe命令介绍

    命令介绍 ▪ 简介 ▪ 内容 2相关信息 ▪ 参数 ▪ 操作 1命令介绍编辑 简介 Linux命令:modprobe . 功能说明:自动处理可载入模块. 语 法:modprobe [-acdlrtvV ...

  8. insmod与modprobe命令的区别及其相关命令

    insmod与modprobe命令的区别及其相关命令 insmod与modprobe命令的区别及其相关命令 insmod  modprobe  insmod与modprobe均用于添加linux设备驱 ...

  9. Linux自动挂载模块目录,LINUX modprobe命令-自动处理可载入模块

    modprobe命令 用于智能地向内核中加载模块或者从内核中移除模块. modprobe可载入指定的个别模块,或是载入一组相依的模块.modprobe会根据depmod所产生的相依关系,决定要载入哪些 ...

  10. linux modprobe命令参数

    linux modprobe命令参数及用法详解--linux加载模块命令 功能说明:自动处理可载入模块. 语 法:modprobe [-acdlrtvV][--help][模块文件][符号名称 = 符 ...

最新文章

  1. Modbus RTU 通信工具设计
  2. linux java top_Linux top和负载的解释(转载)
  3. Koa入门——关键知识点总结
  4. mysql50道题 查询和,Mysql Sql 语句练习题 (50道)
  5. 我php第一个页面,PHP 第一个 PHP 页面 - 第一个 PHP 页面 - phpStudy
  6. java spring web配置文件路径_java – spring配置文件和web.xml的确切位置在哪里?
  7. 1021个位数字统计
  8. ssh集群服务器免密登录
  9. 以swoole为例,学习如何实现协程
  10. 课程设计 - 运动控制卡(云服务器)
  11. 成都拓嘉启远:拼多多如何查看同行转化数据
  12. linux查看pci设备枚举,Linux 枚举PCI设备
  13. 漫画:程序员找工作—外包公司
  14. 汇编移位指令SHR,SAR,SAL/SHL,ROR,ROL,RCR,RCL
  15. PLC 定时器指令计数器指令比较赋值指令的总结
  16. pandas中的窗口对象(窗口函数)
  17. MATLAB数据导入
  18. 网络攻击知识之几种IP地址攻击方式
  19. ffmpeg录制视频时添加时间水印
  20. 华为机器学习服务语音识别功能,让应用绘“声”绘色

热门文章

  1. deepin应用分发_Deepin 20官方软件源链接说明,附第三方软件源更换教程
  2. Java入门系列之访问修饰符作用范围
  3. jsp导出excel,可传动态参数
  4. 用jupyter打开D盘的文件
  5. 排序算法分析:冒泡排序、选择排序、插入排序、希尔排序、快速排序
  6. QT编程 之 为Label添加点击事件
  7. 跟初恋第一次约会的时候
  8. mysql mysqld install_mysql中,执行mysqld –install命令 、net start mysql命令出错的解决办法...
  9. 超级详细的IntelliJIDEA安装教程
  10. [WikiOI] 2.1.2 排序