DCMD_CHR_ENABLE_LOGGING

QNX SDP8.0Devctl and Ioctl CommandsDeveloper

Enable the logging of transmitted and/or received data

Synopsis:

#include <sys/dcmd_chr.h>

#define DCMD_CHR_ENABLE_LOGGING     __DIOT(_DCMD_CHR, 36, int)

Arguments to devctl():

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

Description:

This command enables the logging of transmitted and/or received data.

Input:

A bitwise OR of the flags that specify the type of data:

  • _LOG_RX — received
  • _LOG_TX — transmitted

Output:

None.

See also:

DCMD_CHR_DISABLE_LOGGING, DCMD_CHR_FLUSH_LOG

devctl() in the QNX OS C Library Reference

Page updated: