DCMD_MISC_MQGETATTR

Get the attributes of a message queue

Synopsis:

#include <sys/dcmd_misc.h>

#define DCMD_MISC_MQGETATTR             __DIOF(_DCMD_MISC, 1, struct mq_attr)

Arguments to devctl():

Argument Value
filedes A message-queue descriptor (of type mqd_t) that you obtained by opening the queue.
dcmd DCMD_MISC_MQGETATTR
dev_data_ptr A pointer to a struct mq_attr
n_bytes sizeof(struct mq_attr)
dev_info_ptr NULL

Description:

This command gets the attributes for a message queue. For more information, see mq_gettattr() in the QNX Neutrino C Library Reference

Input:

None.

Output:

The attributes of the message queue.

See also:

DCMD_MISC_MQSETATTR

devctl(), mq_gettattr() in the QNX Neutrino C Library Reference