On Wed, 7 Mar 2007, long mei wrote:

> Hello,
> Now I am using usb mass storage function on my pxa270 handset with linux 
> 2.4.20, Now I need a function add to usb driver that detect the action that 
> pc user's safely remove usb device by right click usb tray and stop usb 
> device£¬ The action is mount filesystem back. But from usb protocol, I have 
> not seen how to detect this.
> Is this usb removal a standard part of protocol? 

It is not.  But to the gadget, the "USB removal" in Windows appears as a 
USB suspend, which _is_ standard.

There already is a function in g_file_storage to detect these suspends; it 
is called fsg_suspend().

Alan Stern


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to