Am Mittwoch, 18. Januar 2006 07:58 schrieb Mukund JB.: > I made an attempt to understand the USB driver sample code in usb-skeleton.c > file /drivers/usb. > I found in the probe function there are two reference counts being maintained. > One is through usb_get_dev() and the other one is kref_init(). > Is this kind of reference count implementation not redundant?
Two different data structures are managed. Krefs are used for an internal data structure, usb_get_dev manages usbcore's data structure. HTH Oliver ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel