30.12.2013 Views

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

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.

6.1. KERNEL INTERNAL STATE ACQUISITION FUNCTIONS 261<br />

td rdy que<br />

Get Task Precedence<br />

[C Language Interface]<br />

INT ct = td_rdy_que ( PRI pri, ID list[], INT nent ) ;<br />

[Parameters]<br />

PRI pri Task priority<br />

ID list[] Location of task ID list<br />

INT nent Maximum number of list entries<br />

[Return Parameters]<br />

INT ct Number of priority pri tasks in a run state<br />

or Error Code<br />

[Description]<br />

Gets a list of IDs of the tasks in a run state (READY state or RUN state) whose task priority is pri,<br />

arranged in order from highest to lowest precedence.<br />

This function stores in the location designated in list up to nent task IDs, arranged in order of<br />

precedence starting from the highest-precedence task ID at the head of the list.<br />

The number of tasks in a run state with priority pri is passed in the return code. If return code > nent,<br />

this means not all task IDs could be stored.<br />

Copyright c○ 2002, 2003 by T-Engine Forum<br />

T-<strong>Kernel</strong> <strong>1.B0.02</strong>

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

Saved successfully!

Ooh no, something went wrong!