public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* tiny tty driver sample
@ 2007-03-07 16:27 Jon Ringle
  2007-03-07 16:32 ` Jiri Kosina
  2007-03-07 16:50 ` Jiri Slaby
  0 siblings, 2 replies; 6+ messages in thread
From: Jon Ringle @ 2007-03-07 16:27 UTC (permalink / raw)
  To: linux-kernel

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?

Thanks,

Jon

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-03-07 23:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox