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> q_send<br />

Notes<br />

See Also<br />

Hex Mnemonic Description<br />

0x3A ERR_VARQ Queue is variable length.<br />

0x65 ERR_STALEID Object's node has failed.<br />

1. If the caller is a task, it may be preempted as a result of this call.<br />

2. q_send() sends a message to an ordinary message queue. Use q_vsend() to<br />

send a message to a variable length message queue.<br />

Multiprocessor Considerations<br />

1. If qid identifies a global queue residing on another processor node, the local<br />

kernel will internally make an RSC to that remote node to post the input<br />

message to that queue.<br />

2. If a task awakened by this call does not reside on the local node, the local kernel<br />

will internally pass the message to the task's node of residence, whose pSOS+m<br />

kernel will ready the task and give it the relayed message. Thus, a q_send()<br />

call, whether it is on the local or a remote queue, may cause pSOS+m activities<br />

on another processor node.<br />

Callable From<br />

■ Task.<br />

■ ISR, if the target queue is local to the node from which the q_send() call is<br />

made.<br />

■ KI, if the target queue is local to the node from which the q_send() call is<br />

made.<br />

■ Callout, if the target queue is local to the node from which the q_send() call is<br />

made.<br />

q_broadcast, q_receive, q_urgent, q_vsend<br />

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

1

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

Saved successfully!

Ooh no, something went wrong!