-
pget_mpl
ipget_mpl
-
Acquire variable-sized memory block (polling).
ER pget_mpl (ID mplid, UINT blksz, VP *p_blk);
ER ipget_mpl (ID mplid, UINT blksz, VP *p_blk);
|
|
|
|
ID mplid;
|
ID number of the variable-sized memory pool from which a memory block is acquired.
|
|
UINT blksz;
|
Memory block size to be acquired (in bytes).
|
|
VP *p_blk;
|
Start address of the acquired memory block.
|
This service call acquires a variable-size memory block of the size specified by parameter
blksz from the variable-size memory pool specified by parameter
mplid, and stores its start address into the area specified by parameter
p_blk.
If no variable-size memory blocks could be acquired from the target variable-size memory pool (no successive areas equivalent to the requested size were available) when this service call is issued, this service call does not acquire variable-size memory block but returns E_TMOUT.
Note 1 The RI850V4 acquires variable-size memory blocks in the unit of "integral multiple of 4". If a value other than an integral multiple of 4 is specified for parameter
blksz, it is rounded up to be an integral multiple of 4.
Note 2 If no variable-size memory blocks could be acquired from the target variable-size memory pool (no successive areas equivalent to the requested size were available) when this service call is issued, the contents in the area specified by parameter
p_blk become undefined.
|
|
|
|
|
|
|
|
|
|
|
- mplid > Maximum ID number
|
|
|
- This service call was issued in the CPU locked state.
|
|
|
- Specified variable-sized memory pool is not registered.
|
|
|
- No successive areas equivalent to the requested size were available in the target variable-size memory pool.
|