tk_del_mpf

Delete Fixed-size Memory Pool

[C Language Interface]

ER ercd = tk_del_mpf ( ID mpfid ) ;

[Parameters]

ID	mpfid	Fixed-size memory pool ID

[Return Parameters]

ER	ercd	Error code

[Error Codes]

E_OK	Normal completion


E_ID	Invalid ID number (mpfid is invalid or cannot be used)


E_NOEXS	Object does not exist (the fixed-size memory pool specified in mpfid does not exist)

[Description]

Deletes the fixed-size memory pool specified in mpfid.

No check or notification is made as to whether there are tasks using memory allocated from this memory pool. The system call completes normally even if some blocks have not been returned to the pool.

Issuing this system call releases the memory pool ID number, the control block memory space and the memory pool space itself.

This system call completes normally even if there are tasks waiting for memory block allocation from the deleted memory pool, but error code E_DLT is returned to the tasks in WAIT state.

Comments

Click here to Post a Comment