-
ref_mpf
iref_mpf
-
Reference fixed-sized memory pool state.
ER ref_mpf (ID mpfid, T_RMPF *pk_rmpf);
ER iref_mpf (ID mpfid, T_RMPF *pk_rmpf);
|
|
|
|
ID mpfid;
|
ID number of the fixed-sized memory pool to be referenced.
|
|
T_RMPF *pk_rmpf;
|
Pointer to the packet returning the fixed-sized memory pool state.
|
[Fixed-sized memory pool state packet: T_RMPF]
typedef struct t_rmpf {
ID wtskid; /*Existence of waiting task*/
UINT fblkcnt; /*Number of free memory blocks*/
ATR mpfatr; /*Attribute*/
ID memid; /*Reserved for future use*/
} T_RMPF;
|
Stores fixed-sized memory pool state packet (ID number of the task at the head of the wait queue, number of free memory blocks, etc.) of the fixed-sized memory pool specified by parameter
mpfid in the area specified by parameter
pk_rmpf.
|
|
|
|
|
|
|
|
- mpfid > Maximum ID number
|
|
|
- This service call was issued in the CPU locked state.
|
|
|
- Specified fixed-sized memory pool is not registered.
|