From: "Mockern" <Mockern@yandex.ru>
To: jirislaby@gmail.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: Linux tty driver question
Date: Sat, 17 Feb 2007 14:27:51 +0300 (MSK) [thread overview]
Message-ID: <45D6E6B7.000003.09194@mfront8.yandex.ru> (raw)
In-Reply-To: <45D6E094.8030006@gmail.com>
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 (e.g.cat < 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
>above.
>
>regards,
--
Сегодня удачный день, чтобы завести почту на Яндексе http://mail.yandex.ru
next prev parent reply other threads:[~2007-02-17 11:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-17 10:06 Mockern
2007-02-17 11:01 ` Jiri Slaby
2007-02-17 11:27 ` Mockern [this message]
2007-02-17 12:55 ` Jiri Slaby
2007-02-17 13:05 ` Mockern
2007-02-27 9:46 ` Jiri Slaby
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45D6E6B7.000003.09194@mfront8.yandex.ru \
--to=mockern@yandex.ru \
--cc=jirislaby@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®