2007-02-16 12:22:07

by Mockern

[permalink] [raw]
Subject: bloc_til_ready in tty driver


What for is "bloc_til_ready" function in tty drivers?

Thank you


2007-02-16 12:47:54

by Jiri Slaby

[permalink] [raw]
Subject: Re: bloc_til_ready in tty driver

Mockern napsal(a):
> What for is "bloc_til_ready" function in tty drivers?

Most drivers waits for hardware to detect carrier and for closed callout.

regards,
--
http://www.fi.muni.cz/~xslaby/ Jiri Slaby
faculty of informatics, masaryk university, brno, cz
e-mail: jirislaby gmail com, gpg pubkey fingerprint:
B674 9967 0407 CE62 ACC8 22A0 32CC 55C3 39D4 7A7E

2007-02-16 13:48:00

by Mockern

[permalink] [raw]
Subject: Re: bloc_til_ready in tty driver

Thanx for your respond,

I did not implement this function in my tty driver.

Does it help to work my driver with cat Linux operation?
(e.g. cat < ttyS10)


>Mockern napsal(a):
>> What for is "bloc_til_ready" function in tty drivers?
>
>Most drivers waits for hardware to detect carrier and for closed callout.
>
>regards,

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

2007-02-16 14:28:42

by Jiri Slaby

[permalink] [raw]
Subject: Re: bloc_til_ready in tty driver

Mockern napsal(a):
> Thanx for your respond,
>
> I did not implement this function in my tty driver.
>
> Does it help to work my driver with cat Linux operation?
> (e.g. cat < ttyS10)

Help in which way? If you haven't implemented it, it'll behave like there was
O_NONBLOCK passed to open() call or TIOCSSOFTCAR ioctl with nonzero param was
invoked.

regards,
--
http://www.fi.muni.cz/~xslaby/ Jiri Slaby
faculty of informatics, masaryk university, brno, cz
e-mail: jirislaby gmail com, gpg pubkey fingerprint:
B674 9967 0407 CE62 ACC8 22A0 32CC 55C3 39D4 7A7E

2007-02-16 15:36:58

by Mockern

[permalink] [raw]
Subject: Re: bloc_til_ready in tty driver

Thank you very much

>Mockern napsal(a):
>> Thanx for your respond,
>>
>> I did not implement this function in my tty driver.
>>
>> Does it help to work my driver with cat Linux operation?
>> (e.g. cat < ttyS10)
>
>Help in which way? If you haven't implemented it, it'll behave like there was
>O_NONBLOCK passed to open() call or TIOCSSOFTCAR ioctl with nonzero param was
>invoked.
>
>regards,

--
??????.?????: ????? ????????? ????? ?? ?????????! http://mail.yandex.ru/monitoring/