Linux depmod命令

Linux depmod命令:生成modules.dep文件和映射文件。

Linux depmod命令 功能描述

使用depmod命令可以分析可加载模块的依赖性,生成modules.dep文件和映射文件。

Linux depmod命令 语法

depmod [选项]

命令中各选项的含义如表所示。



depmod命令选项含义

Linux depmod命令 示例

列出所有模块的依赖关系

[root@rhel ~]# depmod -n
kernel/arch/x86/kernel/cpu/mcheck/mce-inject.ko:
kernel/arch/x86/kernel/cpu/cpufreq/powernow-k8.ko:               kernel/drivers/cpufreq/freq_table.ko kernel/arch/x86/kernel/cpu/cpufreq/mperf.ko
kernel/arch/x86/kernel/cpu/cpufreq/mperf.ko:
kernel/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.ko:               kernel/drivers/cpufreq/freq_table.ko kernel/arch/x86/kernel/cpu/cpufreq/mperf.ko
kernel/arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.ko:
kernel/arch/x86/kernel/cpu/cpufreq/speedstep-lib.ko:
kernel/arch/x86/kernel/cpu/cpufreq/p4-clockmod.ko:               kernel/drivers/cpufreq/freq_table.ko kernel/arch/x86/kernel/cpu/cpufreq/speedstep-l
ib.ko
kernel/arch/x86/kernel/test_nx.ko:
kernel/arch/x86/kernel/microcode.ko:
kernel/arch/x86/crypto/fpu.ko:
kernel/arch/x86/crypto/aes-x86_64.ko: kernel/crypto/aes_generic.ko
kernel/arch/x86/crypto/twofish-x86_64.ko: kernel/crypto/twofish_common.ko
kernel/arch/x86/crypto/salsa20-x86_64.ko:
kernel/arch/x86/crypto/aesni-intel.ko:    kernel/crypto/cryptd.ko    kernel/arch/x86/crypto/aes-x86_64.ko kernel/crypto/aes_generic.ko
kernel/arch/x86/crypto/ghash-clmulni-intel.ko: kernel/crypto/cryptd.ko
kernel/arch/x86/crypto/crc32c-intel.ko:
kernel/arch/x86/kvm/kvm.ko:
kernel/arch/x86/kvm/kvm-intel.ko: kernel/arch/x86/kvm/kvm.ko
kernel/arch/x86/kvm/kvm-amd.ko: kernel/arch/x86/kvm/kvm.ko
kernel/kernel/trace/ring_buffer_benchmark.ko:
kernel/mm/hwpoison-inject.ko:
kernel/fs/nfs_common/nfs_acl.ko: kernel/net/sunrpc/sunrpc.ko
kernel/fs/nls/nls_cp737.ko:
kernel/fs/nls/nls_cp775.ko:
kernel/fs/nls/nls_cp850.ko:
kernel/fs/nls/nls_cp852.ko:
........................(省略)

产生模块依赖性数据

[root@rhel ~]# depmod
赞(0)
未经允许不得转载:极客笔记 » Linux depmod命令
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址