DCMD_CHR_TCINJECTC, DCMD_CHR_TCINJECTR

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 Neutrino C Library Reference