Quote:
Originally Posted by AwesomeMachine
|
Thanks!!! I have already read that chapter. However, I am reading kernel code to make more understanding of buffering concept and how that makes to line discipline and then on to user process. Somehow kernel is intricately managing all of that.
So far most of tty code that I am reading is
- tty_io.c
- tty_port.c
- tty_ldisc.c
- tty_buffer.c
- n_tty.c
The confusing part, so far, is how in-built buffering works. And when some data is available, how does that makes to attached line discipline (my understanding is via work queues and flush_to_ldisc is primary function that gets called when scheduled).
Thanks in advance