Alan Cox wrote: > On Sat, 5 May 2007 20:07:15 +0200 > Oliver Neukum <[EMAIL PROTECTED]> wrote: >> should I understand this so that, if tty_buffer_request_room() returns >> less than requested, the rest of the data should be dropped on the >> floor? > > If it returns NULL then either there is > 64K buffered (we can adjust > that if anyone shows need - its just for sanity) or the system is out of > RAM.
It sounds bad, but I think dropping the data make sense with the new tty buffering code. My interpretation of the tty buffering is that it is intended to be the main receive buffer facility for the driver. It simplifies and centralizes these functions so the driver does not need implement policies such as when to flush for user request, expand under load, crop when too large. It should not be the driver's responsibility to try and work around the tty buffering if it becomes full. That adds other complexity such as when the driver should attempt to push the data again: when more data is received? after a timeout? If the tty buffering runs dry, then maybe put out an error message. If the losses occur too often then the tty buffering code needs to be adjusted. -- Paul ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users