cre_mpl
acre_mpl
ER cre_mpl (ID mplid, T_CMPL *pk_cmpl );
ER_ID acre_mpl ( T_CMPL *pk_cmpl );
The cre_mpl creates a variable-sized memory pool with variable-sized memory pool ID indicated by mplid according to the content of pk_cmpl. The acre_mpl creates a variable-sized memory pool according to the content of pk_cmpl, and returns the created variable-sized memory pool ID.
2 ) Size of variable-sized memory pool area (mplsz), Start address of the variable-sized memory pool area (mpl)
The application acquires mplsz bytes of variable-sized memory pool area and specifies the start address for mpl.
The mpl must be 4-bytes boundary.
The application acquires mplsz bytes of variable-sized memory pool area and specifies the start address for mpl.
The mpl must be 4-bytes boundary.
Note 1 The RI600PX is not concerned of anything of the access permission to the variable-sized memory pool area. To access to the memory block from task, the memory pool area must be in the memory object with appropriate permission.
Note, the RI600PX generates management tables in the memory pool area. If the management table is rewritten by allocation, correct system operation cannot be guaranteed.
Note, the RI600PX generates management tables in the memory pool area. If the management table is rewritten by allocation, correct system operation cannot be guaranteed.
Note 2 The mITRON4.0 specification defines the function that the kernel allocates variable-sized memory pool area when NULL is specified for mpl. But RI600PX does not support this function.
3 ) Maximum memory block size (maxblksz)
Specify the maximum memory block size for maxblksz. Note, the maximum size of memory block that can be actually acquired might be larger than maxblksz. For details, refer to "9.3.1 Size of Variable-sized memory block".
Specify the maximum memory block size for maxblksz. Note, the maximum size of memory block that can be actually acquired might be larger than maxblksz. For details, refer to "9.3.1 Size of Variable-sized memory block".