06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

q_avurgent pSOS+ <strong>System</strong> <strong>Calls</strong><br />

q_avurgent (pSOS+m kernel only) Asynchronously posts a message at the head of a<br />

variable-length message queue.<br />

#include <br />

unsigned long q_avurgent(<br />

unsigned long qid, /* queue identifier */<br />

void *msg_buf, /* message buffer */<br />

unsigned long msg_len, /* length of message */<br />

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

This system call functions the same as q_vurgent except that q_avurgent<br />

executes asynchronously. Refer to the description of q_vurgent for further<br />

information. For a more detailed description of asynchronous services, refer to the<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> Concepts manual.<br />

qid Specifies the queue identifier.<br />

msg_buf Points to the message to send.<br />

msg_len Specifies the length of the message.<br />

When called in system running pSOS+m, this call always returns 0. The pSOS+<br />

kernel (the single processor version) returns ERR_SSFN.<br />

The following error codes may be reported if a q_avurgent() call fails and the<br />

node’s MC_ASYNCERR routine (if present) is invoked:<br />

Hex Mnemonic Description<br />

0x05 ERR_OBJDEL Queue has been deleted.<br />

0x06 ERR_OBJID qid incorrect; failed validity check.<br />

0x07 ERR_OBJTYPE Object type doesn’t match object ID;<br />

failed validity check.<br />

1-68 <strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!