On Mon, 27 Nov 2006, Ajay Jain wrote: > > g_file_storage reads and writes data to/from the card, as you would > > expect. > > > Is there some user-space daemon running? > > Only if you start one up. > > Got it, just one point for discussion. I just saw the file storage > code and realized that things are implemented as a kernel thread and > the read/write functionality is built into it. Generally speaking, for > enrichment, Is it not a better idea to keep this functionality in the > user space? If it was a functionality of the user space, would it not > be better? I just want to know your design opinion.
The driver certainly could have been written using a user thread instead of a kernel thread. I considered doing it that way at the time, but decided not to. For one thing, interposing the userspace gadget API would have added an extra level of complication. For another, the context switches between user and kernel mode would have made the driver that much slower, and one generally wants mass-storage devices to run as fast as possible. 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