DCMD_CHR_GETOBAND

QNX SDP8.0Devctl and Ioctl CommandsDeveloper

Get out-of-band data stored by a device

Synopsis:

#include <sys/dcmd_chr.h>

#define DCMD_CHR_GETOBAND   __DIOF(_DCMD_CHR, 25, 0)

Arguments to devctl():

Argument Value
filedes A file descriptor that you obtained by opening the device.
dcmd DCMD_CHR_GETOBAND
dev_data_ptr A pointer to a char
n_bytes sizeof(char)
dev_info_ptr NULL

Description:

This command obtains out of band data stored by the device. This is usually associated with a serial driver.

Input:

None.

Output:

A bitwise OR of the following _OBAND_SER_* bits. This encoding depends on the individual device.

  • _OBAND_SER_EXTENDED — the device has extended data that you can get with the DCMD_CHR_GETOBAND_EXTENDED command.
  • _OBAND_SER_OE — overrun error.
  • _OBAND_SER_PE — parity error.
  • _OBAND_SER_FE — framing error.
  • _OBAND_SER_BI — break.
  • _OBAND_SER_SW_OE — software overrun error.
  • _OBAND_SER_MS — change in modem status.
  • _OBAND_SER_RESUME — the device has resumed.

See also:

DCMD_CHR_GETOBAND_EXTENDED, DCMD_CHR_PUTOBAND

devctl() in the QNX OS C Library Reference

Page updated: