how to get version string and other metadata out of a not-loaded kernel module file?
Is there an (easy) way to query the "metadata", such as the version strings and such, of a kernel module file, without loading it first?
Quoted 2 lines · Mark Atwood
Is there an (easy) way to query the "metadata", such as the version strings and such, of a kernel module file, without loading it first?
With modutils >= 2.4.5.
# modinfo loop filename: /lib/modules/2.4.10-pre8-xfs/kernel/drivers/block/loop.o description: <none> author: <none> parm: max_loop int, description "Maximum number of loop devices (1-255)"
# strings -a /lib/modules/2.4.10-pre8-xfs/kernel/drivers/block/loop.o | grep kernel_version= kernel_version=2.4.10-pre8-xfs