Frees memory allocated by the rmalloc kernel service.
Item | Description |
---|---|
pointer | Specifies the address of the area in memory to free. |
size | Specifies the size of the area in memory to free. |
The rmfree kernel service frees the area of memory pointed to by the pointer parameter in the contiguous real memory heap. This area of memory must be allocated with the rmalloc kernel service, and the pointer must be the pointer returned from the corresponding rmalloc kernel service call. Also, the size must be the same size that was used on the corresponding rmalloc call.
Any memory allocated in a prior rmalloc call must be explicitly freed with an rmfree call. This service can be called from the process environment only.
Item | Description |
---|---|
0 | Indicates successful completion. |
-1 | Indicates one of the following:
|