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.

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

ev_asend (pSOS+m kernel only) Asynchronously sends events to a task.<br />

#include <br />

unsigned long ev_asend(<br />

unsigned long tid, /* target task identifier */<br />

unsigned long events /* bit-encoded events */<br />

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

This system call asynchronously sends events to a task. It is identical to ev_send()<br />

except the call is made asynchronously. Refer to the description of ev_send() for<br />

further information.<br />

tid Specifies the task ID of the target task.<br />

events Contains a list of bit-encoded events.<br />

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

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

Should the call fail, if present, the node's MC_ASYNCERR routine is invoked and the<br />

following error codes may be reported:<br />

Hex Mnemonic Description<br />

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

0x06 ERR_OBJID tid is incorrect, failed validity check.<br />

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

failed validity check.<br />

If an MC_ASYNCERR routine is not provided, the pSOS+m kernel generates a fatal<br />

error.<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 1-25<br />

1

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

Saved successfully!

Ooh no, something went wrong!