In my driver module data is coming in callback function. I want to add data to read callback but not able to find read callback in tty structure
Asked
Active
Viewed 989 times
-3
-
We are neither a coding nor a tutoring service. What is your **specific** problem with your existing code? – too honest for this site Sep 10 '17 at 00:45
-
Also, there is [LDD3](https://lwn.net/Kernel/LDD3/), which goes fairly deep into the details of writing Linux kernel drivers; OP should take a look at the scull example driver in particular, and the char driver chapters in general. As of 2017-09-10, LDD4 hasn't been published yet. – Nominal Animal Sep 10 '17 at 02:40
-
I mean to say I am not able to find a read callback in tty structure – Pintu Patel Sep 10 '17 at 05:45
1 Answers
0
There is no read callback. The tty core buffers the data received by the tty drivers in a structure called struct tty_flip_buffer. Read Chapter 18 of LDD3

Ketan Mukadam
- 789
- 3
- 7