MSGQ_getAttrs
2-244
C Interface
Syntax
status = MSGQ_getAttrs(msgqQueue, attrs);
Parameters
MSGQ_Queue
msgqQueue;
/* Message queue */
MSGQ_Attrs
*attrs;
/* Attributes of message queue */
Return Value
Int
status
/* status */
Reentrant
yes
Description
MSGQ_getAttrs fills in the attrs structure passed to it with the attributes
of a local message queue. These attributes are set by MSGQ_open.
The API returns SYS_OK unless the message queue is not local (that is,
it was opened on another processor). If the message queue is not local,
the API returns SYS_EINVAL and does not change the contents of the
passed in attrs structure.
Example
status = MSGQ_getAttrs (msgqQueue, &attrs);
if (status != SYS_OK) {
return;
}
notifyHandle = attrs.notifyHandle;
Constraints and
Calling Context
❏
The message queue must have been returned from a MSGQ_open
call and must be valid.
❏
This function can be called from a HWI, SWI or TSK.
See Also
MSGQ_getAttrs
Returns the attributes of a message queue