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.

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

t_resume Resumes a suspended task.<br />

#include <br />

unsigned long t_resume(<br />

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

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

Notes<br />

This system call removes the suspension of a task. If the task was suspended while<br />

in the ready state, t_resume() releases it to be scheduled for execution. If the task<br />

was both suspended and blocked (for example, waiting for a message), t_resume()<br />

removes only the suspension. This leaves the task in the blocked state.<br />

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

This system call returns 0 on success, or an error code on failure.<br />

Hex Mnemonic Description<br />

0x05 ERR_OBJDEL Task already deleted.<br />

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

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

failed validity check.<br />

0x15 ERR_NOTSUSP Task not suspended.<br />

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

The calling task can be preempted as a result of this call.<br />

1-152 <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!