DCMD_MISC_MQSETCLOSEMSG
Inject a canned message when a queue descriptor is closed
Synopsis:
#include <sys/dcmd_misc.h>
#define DCMD_MISC_MQSETCLOSEMSG __DIOT(_DCMD_MISC, 4, struct { char __data[64];})
Arguments to devctl():
| Argument | Value |
|---|---|
| filedes | A file descriptor that you obtained by opening the device. |
| dcmd | DCMD_MISC_MQSETCLOSEMSG |
| dev_data_ptr | A pointer to a struct { char __data[64];}. |
| n_bytes | sizeof(struct { char __data[64];}) |
| dev_info_ptr | NULL |
Description:
This command specifies a canned message that's injected when a message descriptor is closed.
Note:
The alternate (mq) implementation of message queues doesn't support this command.
Input:
The string that you want to inject.
Output:
None.
See also:
devctl() in the QNX Neutrino C Library Reference
Page updated:
