[lkml]   [2007]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Linux tty driver question
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

-- 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

Hnus <> is an alias for /dev/null
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2007-02-17 12:03    [W:0.078 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site