lkml.org 
[lkml]   [2000]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Re: Move of input drivers, some word needed from you


On Tue, 22 Aug 2000, Bjorn Wesen wrote:
>
> SOmething similar to the skb's would be preferable - so I can just take
> write blocks and chain them into the DMA hardware. Incoming data can go
> into "skb's" as well up to the tty.

No. That is just horrible. What's so wrong with simple flip-buffers that
they wouldn't work for you? Simple, and you can fill them up as fast as
you can and then flip. Sure, if nobody reads the buffers fast enough
you'll have trouble, but that's independent of how you do things. It's a
basic law of the universe (called the "if nobody is listening, it doesn't
matter how loudly or slowly you talk" law).

If you don't like the circular queues, you can just get rid of those.
Although I don't see what the difference between a circular queue and two
buffers you flip between really is. The circular queues work well for many
things, and are there because that's how the original tty layer worked..

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:37    [W:2.258 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site