DCMD_CHR_TCINJECTC, DCMD_CHR_TCINJECTR
QNX SDP8.0Devctl and Ioctl CommandsDeveloper
Inject characters into a device's input buffer
Synopsis:
#include <sys/dcmd_chr.h>
#define DCMD_CHR_TCINJECTC __DIOT(_DCMD_CHR, 22, 0) /*CANONICAL Input Buffer*/
#define DCMD_CHR_TCINJECTR __DIOT(_DCMD_CHR, 23, 0) /*RAW Input Buffer*/
Arguments to devctl():
Argument | Value |
---|---|
filedes | A file descriptor that you obtained by opening the device. |
dcmd | DCMD_CHR_TCINJECTC or DCMD_CHR_TCINJECTR |
dev_data_ptr | A pointer to a char |
n_bytes | The number of characters to inject |
dev_info_ptr | NULL |
Description:
These commands inject characters into a device's canonical or raw input buffer.
Note:
This command is for internal use, and you shouldn't use it directly.
Instead use the
tcinject()
cover function.
Input:
A pointer to a character buffer.
Output:
None.
See also:
devctl(), tcinject() in the QNX OS C Library Reference
Page updated: