> This is the first time I write the usb driver under linux. For macro > FILL_CONTROL_URB( ), I have one question: > URB do not protect by spinlock. FILL_CONTROL_URB( ) just initialize spin > lock and do not use it. > > Do I make some mistake? Anyone can give me some suggestion. Thank you in > advance.
FILL_CONTROL_URB just initializes the urb. The spinlock is one of the structures it initializes. To use the urb you need to call usb_submit_urb. The code in there (actually in the hcd IIRC) uses the spinlock. Ciao, Duncan. ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
