On Wed, 1 Jun 2005, Oliver Neukum wrote: > > It's not so easy to synchronize operations on an attribute with driver > > operations if the driver doesn't own the attribute's kobject. In this > > Are you suggesting that kobjects should have slaves whose refcounts > they control?
No, not necessarily. It is _possible_ to do this correctly, as Dmitry has shown; it's just not _easy_. In some cases there already is a natural candidate for a "slave" kobject. For instance, usb-storage creates an attribute for the SCSI host that is a child of the USB interface. In general, if a driver needed to add attributes for an existing kobject then perhaps the best thing to do would be to create a class_device and stick the attribute there. Alan Stern ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel