On Mon, 24 Oct 2005 23:48:06 +0200, Laurent Pinchart <[EMAIL PROTECTED]> wrote:
> USB drivers usually use a driver specific structure to hold all kind of > information about a device instance. Depending on the driver, those > structures are stored in a static array, or are allocated in the probe > function and stored in a linked list. > > I was wondering if there was a guideline regarding which method was preferred. An array is used when you have to index these structures. If you do not, list is probably better. The overhead of links is usually negligible, but the scalability is better. There is no wasted memory if you use only a few devices. -- Pete ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
