Hello all,

Apologies if this is the wrong mailing list, not sure if it's a dev or
user issue.

I am using the gadget file storage to share a backing file to a host PC
(using a PXA270 board). It seems to work fine.

However, I have so far been unable to figure out/find out how I can
detect in my user space application that the client has been connected
to a host. The constantly running app on the client needs to ensure it
does not write to the backing store whilst the host is connected
(according to docs), so needs to know when it is connected! And also
need to know when disconnected so app can then start writing to backing
file again.

Is there some sort of kernel event/mechanism for determining this
information?

There are obviously issues with timing - for example, how is the
situation where the app is writing something to the backing file when
the host is connected handled? I am assuming all these issue are handled
somehow, as many devices appear to be able to do this (I could be wrong
- is there a better way?) 

TIA

James

This message (including any attachments) contains confidential 
and/or proprietary information intended only for the addressee.  
Any unauthorized disclosure, copying, distribution or reliance on 
the contents of this information is strictly prohibited and may 
constitute a violation of law.  If you are not the intended 
recipient, please notify the sender immediately by responding to 
this e-mail, and delete the message from your system.  If you 
have any questions about this e-mail please notify the sender 
immediately.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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