「Linux」modinfoコマンドでモジュールのファイル名とフルパスを確認する方法
書式
modinfo [options] filename [args]
オプション:
-a, –author Print only 'author’
-d, –description Print only 'description’
-l, –license Print only 'license’
-p, –parameters Print only 'parm’
-n, –filename Print only 'filename’
-0, –null Use \0 instead of \n
-F, –field=FIELD Print only provided FIELD
-k, –set-version=VERSION Use VERSION instead of `uname -r`
-b, –basedir=DIR Use DIR as filesystem root for /lib/modules
-V, –version Show version
-h, –help Show this help
実行例
# modinfo bluetooth
filename: /lib/modules/4.18.0-294.el8.x86_64/kernel/net/bluetooth/bluetooth.ko.xz
alias: net-pf-31
license: GPL
version: 2.22
description: Bluetooth Core ver 2.22
author: Marcel Holtmann <marcel@holtmann.org>
rhelversion: 8.4