Skip to contentSkip to conversation

how to limit flip buffer size in tty driver?

DISCUSSION Mockern 4 participants 6 messages Feb 20, 2007 – Feb 21, 2007

lore
Share & tools
lore

Mockern

author
#0 lore raw

Hello,

how to limit flip buffer size in tty driver?

thanks,
Andy

#1 lore raw
Quoted 3 lines · On Tue, 20 Feb 2007 11:24:10 +0300 (MSK) "Mockern" <[email protected]> wrote:

Hello,

how to limit flip buffer size in tty driver?

You don't.

See Documentation/tty.txt and throttle/unthrottle

Alan

author
#2 lore raw

Thank you Alan for your respond,

Could you help me with a problem which I have with my tty driver, please?

It does not work with Linux cat operation (but there are no problems to write, read with select from user space application!).

regards,

Andy

Quoted 12 lines
Quoted 3 lines · On Tue, 20 Feb 2007 11:24:10 +0300 (MSK) "Mockern" <[email protected]> wrote:

Hello,

how to limit flip buffer size in tty driver?

You don't.

See Documentation/tty.txt and throttle/unthrottle

Alan

Signature · 1 line
Сегодня удачный день, чтобы завести почту на Яндексе http://mail.yandex.ru
#3 lore raw
Quoted 3 lines · Mockern

Thank you Alan for your respond,

Could you help me with a problem which I have with my tty driver, please?

I suspect Alan would be able to help you a whole lot better if you actually included the full source code of your driver...

#4 lore raw
Quoted 8 lines · Arjan van de Ven
Quoted 3 lines · Mockern

Thank you Alan for your respond,

Could you help me with a problem which I have with my tty driver, please?

I suspect Alan would be able to help you a whole lot better if you actually included the full source code of your driver...

Not to mention responding to the previous advice of others (including myself and Theodore) who stated there is no magic function in a driver that directly supports the user mode cat program, and that he should look at the tty settings controllable by stty. (in particular clocal)

I also suggested running cat on a standard serial port and getting that working first. Then applying those stty settings to his custom device/driver.

(Background: he says other user mode programs work to read/write but that cat < /dev/foocustom does nothing.)

Signature · 2 lines
Paul Fulghum
Microgate Systems, Ltd.
#5 lore raw
In reply to Mockern
Quoted 5 lines · On Tue, 20 Feb 2007 15:50:27 +0300 (MSK) "Mockern" <[email protected]> wrote:

Thank you Alan for your respond,

Could you help me with a problem which I have with my tty driver, please?

It does not work with Linux cat operation (but there are no problems to write, read with select from user space application!).

Looking at the trace I am confused as to what does not work ? Can you explain the way in which it doesn't work ?