| Updated: October 28, 2024 |
Flush the input or output stream
#include <sys/dcmd_chr.h> #define DCMD_CHR_TCFLUSH __DIOT(_CMD_IOCTL_TTY, 16, int) /* TIOCFLUSH */
| Argument | Value |
|---|---|
| filedes | A file descriptor that you obtained by opening the device. |
| dcmd | DCMD_CHR_TCFLUSH |
| dev_data_ptr | A pointer to an int |
| n_bytes | sizeof(int) |
| dev_info_ptr | NULL |
This command flushes the input and/or output stream associated with the file descriptor. It's also implemented as the TIOCFLUSH ioctl() command.
The queue selector; one of:
None.