LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   TTY Output space left on serial (https://www.linuxquestions.org/questions/linux-general-1/tty-output-space-left-on-serial-878023/)

yplasse 04-30-2011 12:28 PM

TTY Output space left on serial
 
I and using a serial port and I would like to find how much bytes can still be sent to the output queue. I can find how much bytes are in the output queue with the ioctl TIOCOUTQ. I need to know what is the serial output buffer size to find how much bytes can still be used (memory left) in the queue at all time. Any ideas?

Output queue left = Output queue size - Qty of data in queue

Yves plasse.


All times are GMT -5. The time now is 10:26 AM.