linux/include/asm-generic
Dmitry Torokhov e94965ed5b module: show version information for built-in modules in sysfs
Currently only drivers that are built as modules have their versions
shown in /sys/module/<module_name>/version, but this information might
also be useful for built-in drivers as well. This especially important
for drivers that do not define any parameters - such drivers, if
built-in, are completely invisible from userspace.

This patch changes MODULE_VERSION() macro so that in case when we are
compiling built-in module, version information is stored in a separate
section. Kernel then uses this data to create 'version' sysfs attribute
in the same fashion it creates attributes for module parameters.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-01-24 14:32:51 +10:30
..
2009-06-11 21:02:15 +02:00
2009-06-11 21:02:31 +02:00
2009-06-11 21:02:51 +02:00
2010-10-07 14:08:55 +01:00
2008-05-01 08:03:58 -07:00
2009-06-11 21:02:42 +02:00
2009-06-03 14:06:14 -04:00
2010-10-07 14:08:55 +01:00
2008-08-12 16:07:31 -07:00
2010-10-07 14:08:55 +01:00
2010-06-09 11:12:36 +02:00
2010-01-05 15:34:49 +09:00
2011-01-13 17:32:47 -08:00
2009-06-11 21:02:15 +02:00
2009-09-09 13:29:18 -07:00
2010-09-10 10:56:51 +02:00
2009-06-11 21:02:15 +02:00
2009-06-11 21:02:15 +02:00
2009-06-11 21:02:15 +02:00
2010-08-09 16:48:44 -04:00
2009-06-11 21:02:15 +02:00
2009-06-11 21:02:15 +02:00
2009-06-11 21:02:15 +02:00
2009-06-11 21:02:42 +02:00