Download pSOSystem System Calls

Transcript
psc.book Page 122 Monday, January 11, 1999 1:50 PM
pSOS+ System Calls
q_aurgent
pSOSystem System Calls
(pSOS+m kernel only) Asynchronously posts a message at the head
of a variable-length message queue.
#include <psos.h>
unsigned long q_aurgent(
unsigned long qid,
unsigned long msg_buf[4]
)
/* queue identifier */
/* message buffer */
Description
This system call functions the same as the q_urgent() call except that it executes
asynchronously. Refer to the description of q_urgent() for further information.
Arguments
qid
Specifies the queue ID of the target queue.
msg_buf
Specifies the message to send.
Return Value
When called in a system running the pSOS+m kernel, this call always returns 0.
The pSOS+ kernel (the single processor version) returns ERR_SSFN.
Error Codes
Should the call fail, if present, the node’s MC_ASYNCERR routine is invoked and error
codes are reported. Refer to Appendix A for the error codes.
If the MC_ASYNCERR routine is not provided, the pSOS+ m kernel generates a fatal
error.
Notes
1. This call is supported only by the pSOS+m kernel.
2. The calling task can be preempted as a result of this call.
3. q_aurgent() asynchronously sends an urgent message to an ordinary message queue. Use q_avurgent() to asynchronously send an urgent message to
a variable length message queue.
2-122
q_aurgent