LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-31-2018, 07:58 PM   #1
mgupta
LQ Newbie
 
Registered: Jul 2018
Posts: 5

Rep: Reputation: Disabled
Linux - Kernel - tty buffer working


I am in the process of understanding tty_core and it's buffering mechanism. So far I have been struggling with how buffering works in tty_core. Can someone please explain or point me to right resource. I have read TTY Driver section in LDD3 already which explains more about tty driver/s.

Last edited by mgupta; 07-31-2018 at 08:17 PM.
 
Old 07-31-2018, 08:35 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
This is pretty good info on ttys: https://static.lwn.net/images/pdf/LDD3/ch18.pdf
 
Old 07-31-2018, 08:51 PM   #3
mgupta
LQ Newbie
 
Registered: Jul 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AwesomeMachine View Post
This is pretty good info on ttys: https://static.lwn.net/images/pdf/LDD3/ch18.pdf
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial Driver HW FIFO over flow and 64K tty buffer over flow harsh_electro Linux - General 0 12-07-2012 10:44 PM
[SOLVED] TTY's not working, switching TTY's does nothing David2010 Linux - Hardware 5 01-17-2012 11:25 PM
TTY's not working, switching TTY's does nothing David2010 Linux - Software 3 01-16-2012 03:29 AM
read from tty buffer vineeth789 Programming 1 01-12-2006 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 10:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration