Skip to contentSkip to conversation

how to get version string and other metadata out of a not-loaded kernel module file?

DISCUSSION Mark Atwood 2 participants 2 messages Sep 17, 2001 – Sep 18, 2001

lore
Share & tools
lore
#0 lore raw

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?

#1 lore raw
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