Hi all, I'm currently writing a very simple USB driver for a printer. I've a few rookie questions that I hope you guys can give me some pointers.
First of all, I decide not to use MOD_INC_USE_COUNT/MOD_DEC_USE_COUNT coz I read it somewhere that it's no longer necessary if I define "owner:THIS_MODULE" in my file ops. However, after I open() the printer device and then unplug the printer, I still have a module use count as 1, is this expected behaviour? Do I need to do MOD_DEC* inside disconnect()? How, from the point of view of the driver, should I handle a disconnection of USB device after open() is called? I was thinking to keep the device structure around so that I can reuse it when the printer is re-connected again (when probe() is called). Is there any well-known policy/procedure to handle such situation? All comments and suggestions are welcome! Thanks in advance. Regards, Gary ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
