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.

150 CHAPTER 4. T-KERNEL/OS FUNCTIONS<br />

tk del mpf<br />

Delete Fixed-size Memory Pool<br />

[C Language Interface]<br />

ER ercd = tk_del_mpf ( ID mpfid ) ;<br />

[Parameters]<br />

ID mpfid Fixed-size memory pool ID<br />

[Return Parameters]<br />

ER ercd Error code<br />

[Error Codes]<br />

E OK<br />

E ID<br />

E NOEXS<br />

Normal completion<br />

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

Object does not exist (the fixed-size memory pool designated in mpfid does not exist)<br />

[Description]<br />

Deletes the fixed-size memory pool designated in mpfid.<br />

No check or notification is made as to whether there are tasks using memory allocated from this memory<br />

pool. The system call completes normally even if not all blocks have been returned to the pool.<br />

Issuing this system call releases the memory pool ID number, the control block memory space and the<br />

memory pool space itself.<br />

This system call completes normally even if there are tasks waiting for memory block allocation from<br />

the deleted memory pool, but error code E DLT is returned to the tasks in WAIT state.<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!