Re: TTY loosing data with u_serial gadget
From: Stefan Bigler
Date: Fri Mar 18 2011 - 17:20:22 EST
In essence if you get a value from receive_room it's a guarantee you mayHi
send that many bytes, it is not a precise instantaneous perfect answer to
the question "exactly what number of bytes could fit at this precise
I have no problem with having more space available than guarantied by
the value of receive_room. But what I see is that the value can be less!
Data will be lost.
My test showed:
data to queue=201
receive_room (guarantied space) =287
real space in queue =0
In the last mail I attached the code for printing, the read_lock was only
added to show a constistant view of all current values.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/