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.

vi<br />

CONTENTS<br />

tk cre cyc (Create Cyclic Handler) . . . . . . . . . . . . . . . . . . . . 169<br />

tk del cyc (Delete Cyclic Handler) . . . . . . . . . . . . . . . . . . . . 172<br />

tk sta cyc (Start Cyclic Handler) . . . . . . . . . . . . . . . . . . . . . 173<br />

tk stp cyc (Stop Cyclic Handler) . . . . . . . . . . . . . . . . . . . . . 174<br />

tk ref cyc (Reference Cyclic Handler Status) . . . . . . . . . . . . . . 175<br />

4.7.3 Alarm Handler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176<br />

tk cre alm (Create Alarm Handler) . . . . . . . . . . . . . . . . . . . . 177<br />

tk del alm (Delete Alarm Handler) . . . . . . . . . . . . . . . . . . . . 179<br />

tk sta alm (Start Alarm Handler) . . . . . . . . . . . . . . . . . . . . 180<br />

tk stp alm (Stop Alarm Handler) . . . . . . . . . . . . . . . . . . . . . 181<br />

tk ref alm (Reference Alarm Handler Status) . . . . . . . . . . . . . . 182<br />

4.8 Interrupt Management Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184<br />

tk def int (Define Interrupt Handler) . . . . . . . . . . . . . . . . . . . . . . . 185<br />

tk ret int (Return from Interrupt Handler) . . . . . . . . . . . . . . . . . . . . 188<br />

4.9 System Management Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190<br />

tk rot rdq (Rotate Ready Queue) . . . . . . . . . . . . . . . . . . . . . . . . . . 191<br />

tk get tid (Get Task Identifier) . . . . . . . . . . . . . . . . . . . . . . . . . . . 193<br />

tk dis dsp (Disable Dispatch) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194<br />

tk ena dsp (Enable Dispatch) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196<br />

tk ref sys (Reference System Status) . . . . . . . . . . . . . . . . . . . . . . . . 197<br />

tk set pow (Set Power Mode) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199<br />

tk ref ver (Reference Version Information) . . . . . . . . . . . . . . . . . . . . 201<br />

4.10 Subsystem Management Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204<br />

tk def ssy (Define Subsystem) . . . . . . . . . . . . . . . . . . . . . . . . . . . 205<br />

tk sta ssy (Call Startup Function of Sub-System) . . . . . . . . . . . . . . . . . 211<br />

tk cln ssy (Call Cleanup Function of Sub-System) . . . . . . . . . . . . . . . . 211<br />

tk evt ssy (Call Event Function of Sub-System) . . . . . . . . . . . . . . . . . . 212<br />

tk ref ssy (Reference Subsystem Status) . . . . . . . . . . . . . . . . . . . . . . 213<br />

tk cre res (Create Resource Group) . . . . . . . . . . . . . . . . . . . . . . . . 214<br />

tk del res (Delete Resource Group) . . . . . . . . . . . . . . . . . . . . . . . . 216<br />

tk get res (Get Resource Management Block) . . . . . . . . . . . . . . . . . . . 217<br />

5 T-<strong>Kernel</strong>/SM 219<br />

5.1 System Memory Management Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . 220<br />

5.1.1 System Memory Allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220<br />

tk get smb (Allocate System Memory Block) . . . . . . . . . . . . . . 220<br />

tk rel smb (Release System Memory Block) . . . . . . . . . . . . . . . 220<br />

tk ref smb (Reference System Memory Block) . . . . . . . . . . . . . . 220<br />

5.1.2 Memory Allocation Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221<br />

Vmalloc (Allocate Nonresident Memory) . . . . . . . . . . . . . . . . . 221<br />

Vcalloc (Allocate Nonresident Memory Elements) . . . . . . . . . . . 221<br />

Vrealloc (Reallocate Nonresident Memory) . . . . . . . . . . . . . . . 221<br />

Vfree (Release Nonresident Memory) . . . . . . . . . . . . . . . . . . . 221<br />

Kmalloc (Allocate Resident Memory) . . . . . . . . . . . . . . . . . . . 221<br />

Kcalloc (Allocate Resident Memory Elements) . . . . . . . . . . . . . 221<br />

Krealloc (Reallocate Resident Memory) . . . . . . . . . . . . . . . . . 221<br />

Kfree (Release Resident Memory) . . . . . . . . . . . . . . . . . . . . . 221<br />

5.2 Address Space Management Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222<br />

5.2.1 Address Space Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222<br />

SetTaskSpace (Set Task Space) . . . . . . . . . . . . . . . . . . . . . . 222<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!