* [RFC scripts] Modules info in one liner script
@ 2019-12-03 7:28 Bhaskar Chowdhury
2019-12-04 13:38 ` Enrico Weigelt, metux IT consult
0 siblings, 1 reply; 2+ messages in thread
From: Bhaskar Chowdhury @ 2019-12-03 7:28 UTC (permalink / raw)
To: yamada.masahiro, michal.lkml, rdunlap; +Cc: linux-kbuild, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1477 bytes --]
Hi Masahiro/Michal/Randy.
This is very trivial and one line script to extract out the running
kernel modules with descriptions, like below
filename:
/lib/modules/5.4.1-arch1-1ArchLinux-5.4.1/kernel/drivers/ata/libata.ko.xz
description: Library module for ATA devices
depends: scsi_mod
filename:
/lib/modules/5.4.1-arch1-1ArchLinux-5.4.1/kernel/drivers/usb/host/xhci-pci.ko.xz
description: xHCI PCI Host Controller Driver
depends: xhci-hcd
filename:
/lib/modules/5.4.1-arch1-1ArchLinux-5.4.1/kernel/drivers/usb/host/xhci-hcd.ko.xz
description: 'eXtensible' Host Controller (xHC) Driver
depends:
filename:
/lib/modules/5.4.1-arch1-1ArchLinux-5.4.1/kernel/drivers/scsi/scsi_mod.ko.xz
description: SCSI core
depends:
filename:
/lib/modules/5.4.1-arch1-1ArchLinux-5.4.1/kernel/arch/x86/crypto/crc32c-intel.ko.xz
description: CRC32c (Castagnoli) optimization using Intel Hardware.
depends:
filename:
/lib/modules/5.4.1-arch1-1ArchLinux-5.4.1/kernel/drivers/usb/host/ehci-pci.ko.xz
description: EHCI PCI platform driver
depends: ehci-hcd
filename:
/lib/modules/5.4.1-arch1-1ArchLinux-5.4.1/kernel/drivers/usb/host/ehci-hcd.ko.xz
description: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
and the code to do this :
awk '{print $1}' "/proc/modules" | xargs modinfo | awk
'/^(filename|desc|depends)/'
Can we put in a script called "kernel_modules_info.sh"
under scripts dir??
Kindly let me know your thoughts.
Thanks,
Bhaskar
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RFC scripts] Modules info in one liner script
2019-12-03 7:28 [RFC scripts] Modules info in one liner script Bhaskar Chowdhury
@ 2019-12-04 13:38 ` Enrico Weigelt, metux IT consult
0 siblings, 0 replies; 2+ messages in thread
From: Enrico Weigelt, metux IT consult @ 2019-12-04 13:38 UTC (permalink / raw)
To: Bhaskar Chowdhury, yamada.masahiro, michal.lkml, rdunlap,
linux-kbuild, linux-kernel
On 03.12.19 08:28, Bhaskar Chowdhury wrote:
> Can we put in a script called "kernel_modules_info.sh"
> under scripts dir??
I'd like to welcome that.
--mtx
---
Enrico Weigelt, metux IT consult
Free software and Linux embedded engineering
info@metux.net -- +49-151-27565287
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-12-04 13:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-03 7:28 [RFC scripts] Modules info in one liner script Bhaskar Chowdhury
2019-12-04 13:38 ` Enrico Weigelt, metux IT consult
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox