如何找到已编译内核模块的版本? [英] How to find the version of a compiled kernel module?

查看:354
本文介绍了如何找到已编译内核模块的版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我处于一种非常方便的状态,即通过查询已加载的内核模块或.ko文件来查找已加载的内核模块的版本.

I am in a situation where it would be very convenient to find the version of a loaded kernel module by querying the loaded module or .ko file.

是否有一种标准的方法来执行 而无需深入源代码?

Is there a standard way to do this without digging into the source code?

推荐答案

$ 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:

这篇关于如何找到已编译内核模块的版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆