pget_mpf
ipget_mpf
ER pget_mpf (ID mpfid, VP *p_blk);
ER ipget_mpf (ID mpfid, VP *p_blk);
This service call acquires the fixed-sized memory block from the fixed-sized memory pool specified by parameter mpfid and stores the start address in the area specified by parameter p_blk.
If a fixed-sized memory block could not be acquired from the target fixed-sized memory pool (no available fixed-sized memory blocks exist) when this service call is issued, fixed-sized memory block acquisition processing is not performed but "E_TMOUT" is returned.
Note 2 The alignment number of memory block is 1. Please perform the following, in order to enlarge the alignment number of memory blocks.
- Specify the memory block size to a multiple of the desired alignment number at creating the fixed-sized memory pool.
- Make the start address of the fixed-sized memory pool area into the address of the desired alignment number.