
B–61863E–1/06
2. PMC SYSTEM CALLPMC LIBRARY
155
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f f f
[Name]
os_disp_mem
[Description]
Deallocates memory allocated by the os_new_mem function and
returns the area to the pooled area.
[Format]
ret = os_disp_mem(dispose_memory_address) ;
unsigned short ret ;
unsigned char *dispose_memory_address ;
[Input]
*dispose_memory_address Allocated memory pointer
[Output]
______
[Returns]
ret Completion code
0 ; The memory has been deallocated and returned normally
to the pooled area.
015FH ; An incorrect segment selector was specified.
0160H ; An incorrect segment type was specified.
0161H ; There is no specified segment.
[Remarks]
The dispose_memory_address must be the address of memory
allocated by the os_new_mem( ) function.
The deallocated memory area must not be accessed.
2.13
DEALLOCATING
MEMORY AND
RETURNING THE
AREA TO THE
POOLED AREA