-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > > // reset the buffer position > > dev->buffer_pos = 0; > > If you are allowing multiple openers you cannot reset the buffer. > > And run it through indent. > I don't see how you can do this with a single opener since it can > then be threaded and issue multiple I/O's in parallel.
Alright, alright, I see I shouldn't have thrown version 0.1 into the ring.. :-) I know that right now it would crash and burn when opened more than once at the same time. I was planning to have open() update the buffer with the current picture (and block when already opened) and read() just return the current buffer contents, at whatever position desired (and I know that the offset parameter to read is not handled yet :). Would this be a sensible mode of operation? Yours, Florian - -- Homo homini lupus. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFBCDJd7CzyshGvatgRAiMFAJ0Yxlk7C98GbuDpXydva9TqbHjzZQCfYsvA r1x/TgiVNr1/yuA+aIvmH7c= =mX4n -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel