Determine the number of characters waiting to be sent
#include <sys/dcmd_chr.h> #define DCMD_CHR_OSCHARS __DIOF(_CMD_IOCTL_TTY, 115, unsigned) /* TIOCOUTQ */
| Argument | Value |
|---|---|
| filedes | A file descriptor that you obtained by opening the device. |
| dcmd | DCMD_CHR_OSCHARS |
| dev_data_ptr | A pointer to an unsigned |
| n_bytes | sizeof(unsigned) |
| dev_info_ptr | NULL |
This command determines the number of characters waiting to be sent. It's also implemented as the TIOCOUTQ ioctl() command.
None.
The number of characters.