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.

4.10. SUBSYSTEM MANAGEMENT FUNCTIONS 205<br />

tk def ssy<br />

Define Subsystem<br />

[C Language Interface]<br />

ER ercd = tk_def_ssy ( ID ssid, T_DSSY *pk_dssy ) ;<br />

[Parameters]<br />

ID ssid Subsystem ID<br />

T DSSY* pk dssy Subsystem definition information<br />

pk dssy detail:<br />

ATR ssyatr Subsystem attributes<br />

PRI ssypri Subsystem priority<br />

FP svchdr Extended SVC handler address<br />

FP breakfn Break function address<br />

FP startupfn Startup function address<br />

FP cleanupfn Cleanup function address<br />

FP eventfn Event handling function address<br />

INT resblksz Resource control block size (in bytes)<br />

(Other implementation-dependent parameters may be added beyond this point.)<br />

[Return Parameters]<br />

ER ercd Error code<br />

[Error Codes]<br />

E OK<br />

E ID<br />

E NOMEM<br />

E RSATR<br />

E PAR<br />

E OBJ<br />

E NOEXS<br />

Normal completion<br />

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

Insufficient memory (memory for control block cannot be allocated)<br />

Reserved attribute (svcatr is invalid or cannot be used)<br />

Parameter error (pk dssy is invalid or cannot be used)<br />

ssid is already defined (when pk dssy ≠ NULL)<br />

ssid is not defined(when pk dssy = NULL)<br />

[Description]<br />

Defines subsystem ssid.<br />

One subsystem ID must be assigned to one subsystem without overlapping with other subsystems. The<br />

OS does not have a function for assigning these automatically.<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!