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

Keith Owens (kaos@ocs.com.au)
Tue, 18 Sep 2001 14:22:27 +1000


On 17 Sep 2001 13:02:36 -0700,
Mark Atwood <mra@pobox.com> wrote:
>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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/