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.

4.10. SUBSYSTEM MANAGEMENT FUNCTIONS 217<br />

tk get res<br />

Get Resource Management Block<br />

[C Language Interface]<br />

ER ercd = tk_get_res ( ID resid, ID ssid, VP *p_resblk ) ;<br />

[Parameters]<br />

ID resid Resource ID<br />

ID ssid Subsystem ID<br />

[Return Parameters]<br />

VP resblk Resource control block<br />

ER ercd Error code<br />

[Error Codes]<br />

E OK<br />

E ID<br />

E NOEXS<br />

E PAR<br />

Normal completion<br />

Invalid ID number (resid or ssid is invalid or cannot be used)<br />

Object does not exist (the resource designated in resid or ssid does not exist)<br />

Parameter error (value that cannot be used in p resblk)<br />

[Description]<br />

Gets the address of the resource control block of resource group resid for subsystem ssid.<br />

[Additional Notes]<br />

E OK might be returned even if this system call is issued for a deleted resource ID. Whether or not error<br />

(E NOEXS) is returned in this case is implementation-dependent.<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!