Re: [RFC] New Driver Model for 2.5

Henning P. Schmiedehausen
2001-10-19T07:57:29Z

Benjamin Herrenschmidt <benh@kernel.crashing.org> writes:

>>> struct device {
>>> struct list_head bus_list;
>>> struct io_bus *parent;
>>> struct io_bus *subordinate;
>>>
>>> char name[DEVICE_NAME_SIZE];
>>> char bus_id[BUS_ID_SIZE];
>>>
>>> struct dentry *dentry;
>>> struct list_head files;
>>>
>>> struct semaphore lock;
>>>
>>> struct device_driver *driver;
>>> void *driver_data;
>>> void *platform_data;
>>>
>>> u32 current_state;
>>> unsigned char *saved_state;
>>> };

>Hi Patrick ! Nice to see this happening ;)

>I would add to the generic structure device, a "uuid" string field.

And a version field! Please add a version field right to the
beginning. This would make supporting legacy drivers in later versions
_much_ easier.

Ciao
Henning

--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH hps@intermeta.de

Am Schwabachgrund 22 Fon.: 09131 / 50654-0 info@intermeta.de
D-91054 Buckenhof Fax.: 09131 / 50654-20