Re: Show module version sysfs file for built-in modules?

From: Alan Jenkins
Date: Wed Jul 29 2009 - 15:16:21 EST


On 7/29/09, devzero@xxxxxx <devzero@xxxxxx> wrote:
> what about this ?
>
> neoware:/sys/module/8139too # cat /sys/module/8139too/version
> 0.9.28
>
> neoware:/sys/module/8139too # modinfo 8139too |grep "^version:"
> version: 0.9.28
>
> the latter should work completely without consulting the kernel for that
> information.
>
> regards
> roland
>
>>List: linux-kernel
>>Subject: Show module version sysfs file for built-in modules?

modinfo clearly won't work for *built in* drivers. Apparently
/sys/module/$MODULE/version doesn't work for built in modules either.
Hence this proposal.

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