lkml.org 
[lkml]   [2008]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: question wrt /drivers/char/tty_io.c in pre 2.6.16 code
> The new tty_insert_flip_string returns the
> number of bytes successfully copied to tty recieve buffers
> how do I implement this functionality in pre 2.6.16 code,
> can it be done?

Probably but it'll be really ugly. You need to stick your nose into the
innards of struct tty_struct and check the space left in the current flip
buffer entry.

What you do if it is full is another question.

Alan.


\
 
 \ /
  Last update: 2008-08-27 18:59    [W:1.066 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site