gpt4 book ai didi

linux - 如何找到已编译内核模块的版本?

转载 作者:IT王子 更新时间:2023-10-29 00:20:13 24 4
gpt4 key购买 nike

我现在的情况是,通过查询加载的模块或 .ko 文件可以很方便地找到加载的内核模块的版本。

是否有一种标准方法可以不深入研究源代码来做到这一点?

最佳答案

$ apropos modinfo
modinfo (8) - display information about a kernel module
$ modinfo cpuid.ko
filename: cpuid.ko
author: H. Peter Anvin <hpa@zytor.com>
description: x86 generic CPUID driver
license: GPL
vermagic: 2.6.37 SMP preempt mod_unload PENTIUM4 gcc-4.4.5
depends:

关于linux - 如何找到已编译内核模块的版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4839024/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com