2007-02-20 08:24:25

by Mockern

[permalink] [raw]
Subject: how to limit flip buffer size in tty driver?

Hello,

how to limit flip buffer size in tty driver?

thanks,
Andy


2007-02-20 11:49:42

by Alan

[permalink] [raw]
Subject: Re: how to limit flip buffer size in tty driver?

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

2007-02-20 12:50:41

by Mockern

[permalink] [raw]
Subject: Re: how to limit flip buffer size in tty driver?

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



>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


--
??????? ??????? ????, ????? ??????? ????? ?? ??????? http://mail.yandex.ru

2007-02-20 12:58:50

by Arjan van de Ven

[permalink] [raw]
Subject: Re: how to limit flip buffer size in tty driver?

On Tue, 2007-02-20 at 15:50 +0300, Mockern wrote:
> 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...


2007-02-20 15:40:06

by Paul Fulghum

[permalink] [raw]
Subject: Re: how to limit flip buffer size in tty driver?

Arjan van de Ven wrote:
> On Tue, 2007-02-20 at 15:50 +0300, Mockern wrote:
>> 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.)

--
Paul Fulghum
Microgate Systems, Ltd.

2007-02-21 15:03:40

by Alan

[permalink] [raw]
Subject: Re: how to limit flip buffer size in tty driver?

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 ?