From: Russell King <rmk@arm.linux.org.uk>
To: "Laurent Hugé" <laurent.huge@wanadoo.fr>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Personnal line discipline difficulties
Date: Mon, 25 Aug 2003 09:42:42 +0100 [thread overview]
Message-ID: <20030825094242.B28712@flint.arm.linux.org.uk> (raw)
In-Reply-To: <200308251018.58127.laurent.huge@wanadoo.fr>; from laurent.huge@wanadoo.fr on Mon, Aug 25, 2003 at 10:18:58AM +0200
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
next prev parent reply other threads:[~2003-08-25 8:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-25 8:18 Laurent Hugé
2003-08-25 8:42 ` Russell King [this message]
[not found] ` <200308251054.48574.laurent.huge@wanadoo.fr>
[not found] ` <20030825102923.A30952@flint.arm.linux.org.uk>
2003-08-25 10:27 ` Laurent Hugé
2003-08-25 8:57 Laurent Hugé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030825094242.B28712@flint.arm.linux.org.uk \
--to=rmk@arm.linux.org.uk \
--cc=laurent.huge@wanadoo.fr \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome