On Fri, 3 Jun 2005, [big5] Enzo Chen (³¯¤Í¤h) wrote: > finally, we wanna unlink the read_urb in the close function, and it blocks: > > mxu2s_close() { > ...... > if(serial->dev) { > printk("unlinking...\n"); > usb_unlink_urb(priv->read_urb);
You should call usb_kill_urb() instead of usb_unlink_urb(), if it is available in your kernel. > printk("unlink finished\n"); // <-- you'll never see > this in kmsg > } > ....... > } 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