[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <45EEFBA0.7030101@zytor.com>
Date: Wed, 07 Mar 2007 09:51:28 -0800
From: "H. Peter Anvin" <hpa@...or.com>
To: Alan Cox <alan@...rguk.ukuu.org.uk>
CC: Jiri Kosina <jikos@...os.cz>, Jon Ringle <JRingle@...tical.com>,
linux-kernel@...r.kernel.org
Subject: Re: tiny tty driver sample
Alan Cox wrote:
>> I guess something like
>>
>> tty_buffer_request_room(tty, data_size);
>> for (i = 0; i < data_size; ++i)
>> work += tty_insert_flip_char(tty, data[i], TTY_NORMAL);
>> if (work)
>> tty_flip_buffer_push(tty);
>
>
> Unless data_size can be very large and high speed then you can replace the
> lot with
>
> if (tty_insert_flip_string(tty, data, data_size))
> tty_flip_buffer_push(tty);
>
What does "very large and high speed" mean in this context?
-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists