Report question

Question: Get the count of bytes waiting on a serial port before reading, linux