lkml.org 
[lkml]   [2001]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC] New Driver Model for 2.5
Date
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:08    [W:0.182 / U:4.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site