Messages in this thread | ![/](/images/icornerl.gif) | | Date | Mon, 25 Aug 2003 09:42:42 +0100 | From | Russell King <> | Subject | Re: Personnal line discipline difficulties |
| |
On Mon, Aug 25, 2003 at 10:18:58AM +0200, Laurent Hugé wrote: > the result is not constant : sometimes, the line discipline receive the 11 > caracters (including the 0D and 0A termination), but most of the time, it > receive firstly 8 the 3 caracters. The *fp value is always 0 (so there's no > error !).
That's not correct. fp is an array of error characters, length "count". Each entry corresponds directly with each received character.
I take it you know that receive_buf can be called at any time with any number of characters? In other words, it doesn't have any framing on the group of characters it may hand you.
-- Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| ![\](/images/icornerr.gif) |