From: Jiri Slaby <jirislaby@gmail.com>
To: Jon Ringle <JRingle@vertical.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: tiny tty driver sample
Date: Wed, 07 Mar 2007 17:50:36 +0100 [thread overview]
Message-ID: <45EEED5C.1090902@gmail.com> (raw)
In-Reply-To: <4DD3AF7ECBBC43409BA36508938D0185123A35@CVAEX1.VERTICAL.COM>
Jon Ringle napsal(a):
> Hello,
>
> I'm trying to write a tty driver and I'm using
> http://lwn.net/images/pdf/LDD3/ch18.pdf as a guide. The sample tiny tty
> driver includes the following code:
>
> for (i = 0; i < data_size; ++i) {
> if (tty->flip.count >= TTY_FLIPBUF_SIZE)
> tty_flip_buffer_push(tty);
> tty_insert_flip_char(tty, data[i], TTY_NORMAL);
> }
> tty_flip_buffer_push(tty);
>
> This doesn't compile against Linux 2.6.16 kernel I'm using, because
> tty->flip.count doesn't exist anymore.
> How should this sample be re-coded?
I think this way:
http://lkml.org/lkml/2007/2/17/65
regards,
--
http://www.fi.muni.cz/~xslaby/ Jiri Slaby
faculty of informatics, masaryk university, brno, cz
e-mail: jirislaby gmail com, gpg pubkey fingerprint:
B674 9967 0407 CE62 ACC8 22A0 32CC 55C3 39D4 7A7E
prev parent reply other threads:[~2007-03-07 16:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-07 16:27 tiny tty driver sample Jon Ringle
2007-03-07 16:32 ` Jiri Kosina
2007-03-07 18:23 ` Alan Cox
2007-03-07 17:51 ` H. Peter Anvin
2007-03-08 0:40 ` Alan Cox
2007-03-07 16:50 ` Jiri Slaby [this message]
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=45EEED5C.1090902@gmail.com \
--to=jirislaby@gmail.com \
--cc=JRingle@vertical.com \
--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