hi all, 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. -james ============================ #define FILL_CONTROL_URB(URB,DEV,PIPE,SETUP_PACKET,TRANSFER_BUFFER,BUFFER_LENGTH,COM PLETE,CONTEXT) \ do {\ spin_lock_init(&(URB)->lock);\ (URB)->dev=DEV;\ (URB)->pipe=PIPE;\ (URB)->setup_packet=SETUP_PACKET;\ (URB)->transfer_buffer=TRANSFER_BUFFER;\ (URB)->transfer_buffer_length=BUFFER_LENGTH;\ (URB)->complete=COMPLETE;\ (URB)->context=CONTEXT;\ } while (0) ------------------------------------------------------- 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