Re: Linux tty driver question

From: Mockern
Date: Sat Feb 17 2007 - 06:28:28 EST

Thank you,

I have no problem with my tty driver, except one thing: it does not work with cat (but there are no problems to write,read from user space application). I'll try to follow your adwise to support cat.

>Mockern napsal(a):
>> Hi,
>> I'm working on Linux tty driver (based on tiny_tty).
>> How can I provide in my driver Linux cat operation ( < ttyS3)?
>call tty_insert_flip_*() from somewhere to put some data into tty recieve
>buffer, which is pushed into ldisc by tty_flip_buffer_push() and then sent by
>tty_read function (where ldisc read is called) to userspace for reading process.
>> What should I implement exactly?
>open, settermios, write_room (note that this is minimal and will probably oops
>when poll or write is invoked) + some isr or timer to fill the buffer mentioned

Сегодня удачный день, чтобы завести почту на Яндексе
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at