tk_del_mpl

Delete Variable-size Memory Pool

[C Language Interface]

ER ercd = tk_del_mpl ( ID mplid ) ;

[Parameters]

ID	mplid	Variable-size memory pool ID

[Return Parameters]

ER	ercd	Error code

[Error Codes]

E_OK	Normal completion


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


E_NOEXS	Object does not exist (the variable-size memory pool specified in mplid does not exist)

[Description]

Deletes the variable-size memory pool specified in mplid.

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