Hi! Some days ago I've faced with the following problem: I need some kind of action (while coding user space program actively handling the serial port) to get sure all the bytes I've wrote to it are _transmitted_. I know about "ioctl(fd, TIOCDRAIN)", but this ioctl is accomplished with tty buffers draining to (probably) FIFO buffer of the serial port. Is there any (portable preferably) way to get an acknolege or to block until FIFO buffer is cleared? The situation is that I can't simply write additional 64 bytes (I did not see any serial ports with FIFO larger than 64 bytes) and drain the tty buffers - I have to catch the exact moment ...
Thanks in advance, Max. To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message