[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tty driver read implementation
I think Clists are used in tty read. Its a list of Cblocks.( C stands
for character).
They are meant to read from slower devices.
Whenever you enter or read characters, Cblocks hold the data
CBlocks are again a list of character and the head shows the start of
valid data.
for eg : 4,8 | 0 | 1 | 2 | 3 | D | e | n | i | s | 9 | 10 |
Refer: The Design of Unix OS by Maurice Bach
Look for Clists.
On Tue, Dec 2, 2008 at 9:24 PM, Denis Borisevich <dennisfen@xxxxxxxxx> wrote:
> Hi everbody!
>
> Could anybody explain to me how the read() is implemented in tty
> drivers? I mean what functions should I register in my driver to
> complete read() system call successfully?
>
> Thanks in advance.
>
> --
> Denis
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ