Re: question wrt /drivers/char/tty_io.c in pre 2.6.16 code

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Denis Joseph Barrow
Date: Thursday, August 28, 2008 - 12:47 am

Thanks Greg/Alan,
As for maintaining 2 and a half year old distros that's my job.
I think I figured out a way of doing the flow control.
I need to wrap the line discipline function pointer
disc->ops->receive_buf(tty, char_buf,flag_buf, count);
in /drivers/char/tty_io.c for my hso driver anyway
I can put in a counter in this wrapper decrementing
the buffers full & increment the counter each time
I call tty_flip_buffer_push(tty); which I will only
do if there are less than 2 buffers busy.

If this idea is plain wrong let me know.

Alan Cox wrote:


-- 
best regards,
D.J. Barrow
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 00/02] 2 more hso.c patches, greg, (Tue Aug 19, 6:07 pm)
[patch 01/02] hso: icon 322 detection fix, greg, (Tue Aug 19, 6:07 pm)
[patch 02/02] hso: dev_kfree_skb crash fix, greg, (Tue Aug 19, 6:07 pm)
Re: [patch 01/02] hso: icon 322 detection fix, Jeff Garzik, (Wed Aug 27, 2:37 am)
Re: hso driver dropping characters on serial port & hacky fix , Denis Joseph Barrow, (Wed Aug 27, 3:54 am)
question wrt /drivers/char/tty_io.c in pre 2.6.16 code, Denis Joseph Barrow, (Wed Aug 27, 8:55 am)
Re: question wrt /drivers/char/tty_io.c in pre 2.6.16 code, Denis Joseph Barrow, (Thu Aug 28, 12:47 am)