All of lore.kernel.org
 help / color / mirror / Atom feed
* tty_io wtf.
@ 2006-08-02 22:36 Dave Jones
  2006-08-02 22:37 ` Dave Jones
  2006-08-02 22:51 ` tty_io wtf David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Dave Jones @ 2006-08-02 22:36 UTC (permalink / raw)
  To: Linux Kernel

I knew I'd regret digging in the tty code.
Can someone enlighten me as to what this *should* be doing?

int tty_insert_flip_string(struct tty_struct *tty, const unsigned char *chars,
                size_t size)
{   
   	.... 
    /* There is a small chance that we need to split the data over
       several buffers. If this is the case we must loop */
    while (unlikely(size > copied));
    return copied;
}   


Looping I can understand, but forever ?
Given we're not advancing 'copied', can we just kill that while loop?
Or should we be changing it with each iteration?

		Dave

-- 
http://www.codemonkey.org.uk

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

end of thread, other threads:[~2006-08-03 12:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-02 22:36 tty_io wtf Dave Jones
2006-08-02 22:37 ` Dave Jones
2006-08-02 23:02   ` [PATCH] tty_io.c: keep davej sane Alexey Dobriyan
2006-08-03 13:12     ` Alan Cox
2006-08-02 22:51 ` tty_io wtf David Miller

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.