Hi everyone,
Here is a simple patch for the 2.4 kernel series that makes dmi_ident
(as defined in arch/i386/kernel/dmi_scan.c) public.
The idea is that this array is actually needed by other parts of the
kernel. Known modules in this case are:
- i8k (drivers/char/i8k.c);
- i2c-piix4 (from the LM Sensors project [1]);
- omke (from the OMKE project [2]).
Right now, these modules are scanning the DMI table again, on their own.
This is bad for at least two reasons:
- waste of time;
- code duplication.
So, this simple patch is the first step in a simplification process that
would let us remove all duplicated code. It is somehow based on a patch
Soos Peter, the author of OMKE, sent me one month ago, so I have to
credit him here.
If this patch is accepted and applied, I'll work together with Peter to
get the three above-mentioned modules simplified, as well as any other I
may have missed. Also, I'll take care of porting this patch to the 2.5
series, since it also belongs there.
All comments welcome, please CC me. And please apply if it's OK.
[1] http://www.lm-sensors.nu/
[2] http://sourceforge.net/projects/omke/
-- Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
This archive was generated by hypermail 2b29 : Wed Apr 30 2003 - 22:00:16 EST