Re: How to detect of Windows Pc's removal action?

"Pandita, Vikram" <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
I have a related query on USB suspend: 
In Host mode, is there a way to force a SUSPEND/RESUME from the class driver or application?

Vikram 

> -----Original Message-----
> From: [email protected] [mailto:linux-usb-
> [email protected]] On Behalf Of Alan Stern
> Sent: Wednesday, March 07, 2007 9:56 PM
> To: long mei
> Cc: [email protected]
> Subject: Re: [linux-usb-devel] How to detect of Windows Pc's removal
> action?
> 
> 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
> _______________________________________________
> [email protected]
> To unsubscribe, use the last form field at:
> https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

-------------------------------------------------------------------------
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
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.