How to get data from a terminal driver from user space? Any ioctl for this?
Hi,
I am interested in getting data which is present in the tty driver, but not yet read by any process. I can know whether any data is available or no, by using the ioctl - TIOCINQ. If its value is more than 0, then it means that there is some data in the input queue. But how do I access this data? Is there any ioctl which will allow me to read the contents of the input-buffer in a tty driver? I would like to achieve this in USER space and not in Kernel space.
Kindly inform.
I am using RedHat Version 9. Kernel version=2.4.20-8
Regards,
Sreeram
|