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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

td inf tsk<br />

Reference Task Statistics<br />

[C Language Interface]<br />

ER ercd = td_inf_tsk ( ID tskid, TD_ITSK *pk_itsk, BOOL clr );<br />

[Parameters]<br />

ID tskid Task ID (TSK SELF can be designated)<br />

TD ITSK* pk itsk Packet address for returning task statistics<br />

BOOL clr Task statistics clear flag<br />

[Return Parameters]<br />

ER ercd Error code<br />

pk itsk detail:<br />

RELTIM stime Cumulative system-level run time (ms)<br />

RELTIM utime Cumulative user-level run time (ms)<br />

[Error Codes]<br />

E OK<br />

E ID<br />

E NOEXS<br />

Normal completion<br />

ID number is invalid<br />

Object does not exist<br />

[Description]<br />

Gets task statistics. This is similar to tk inf tsk. When clr = TRUE (≠ 0), accumulated information<br />

is reset (cleared to 0) after getting the statistics.<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!