Am 03.07.2013 um 18:34 schrieb Darac Marjal:
On Mon, Jul 01, 2013 at 04:05:13PM +0200, Helmut Wollmersdorfer wrote:
how can I find out the version number of a particular kernel module without downloading, without installing, without booting, from
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/input/misc/uinput.c #n880 That is, go to https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree and delve down to where your module source is. Look for "MODULE_VERSION"
Thanks, this works in *most* cases. But some modules do not have it as literal, e.g. https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/block/drbd
- the running kernel, or the loaded modules# modinfo uinput | grep '^version' version: 0.3
Thanks, forgot this magic command;-) Helmut Wollmersdorfer