On Mon, 4 Apr 2005, Duncan Sands wrote: > Hi Alan, > > > > In order to use usb_driver_claim_interface from outside > > > probe/disconnect, a module needs to take the usb_bus_type.subsys > > > write lock. But it can't because usb_bus_type is not EXPORTed. > > > Is this deliberate, or an oversight? > > > > Sounds like an oversight to me. However this won't matter for much longer > > because the bus_type.subsys rwsem is being dropped from the driver model. > > thanks for replying. I'm curious: what is going to replace the bus rw > semaphore?
Pat Mochel has implimented a new scheme he calls "klist"s, which allows safe removal of nodes from active lists without semaphores. That together with a new semaphore added to struct device will take care of things. See his recent postings to LKML: http://marc.theaimsgroup.com/?a=107116169600006&r=1&w=2 Alan Stern ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel