All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Jiri Kosina <jikos@jikos.cz>, Jon Ringle <JRingle@vertical.com>,
	linux-kernel@vger.kernel.org
Subject: Re: tiny tty driver sample
Date: Wed, 07 Mar 2007 09:51:28 -0800	[thread overview]
Message-ID: <45EEFBA0.7030101@zytor.com> (raw)
In-Reply-To: <20070307182318.28d95c95@lxorguk.ukuu.org.uk>

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

  reply	other threads:[~2007-03-07 17: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 [this message]
2007-03-08  0:40       ` Alan Cox
2007-03-07 16:50 ` Jiri Slaby

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=45EEFBA0.7030101@zytor.com \
    --to=hpa@zytor.com \
    --cc=JRingle@vertical.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=jikos@jikos.cz \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.