Guardian Procedure Calls Reference Manual

SEGMENT_DEALLOCATE_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Returned Value
Considerations
Example
Related Programming Manual
Summary
The SEGMENT_DEALLOCATE_ procedure deallocates an extended data segment.
Syntax for C Programmers
#include <cextdecs(SEGMENT_DEALLOCATE_)>
short SEGMENT_DEALLOCATE_ ( short segment-id
,[ short flags ]
,[ short *error-detail ] );
Syntax for TAL Programmers
error := SEGMENT_DEALLOCATE_ ( segment-id ! i
,[ flags ] ! i
,[ error-detail ] ); ! o
Parameters
segment-id
input
INT:value
specifies the segment ID of the segment to be deallocated. The segment ID was assigned by
the program in the call to SEGMENT_ALLOCATE_ that allocated the segment.
flags
input
INT:value
specifies whether dirty pages must be written to the swap file. A dirty page is a page in memory
that has been updated but not written to the swap file. Valid values are:
Reserved (specify 0).<0:14>
indicates that dirty pages in memory are not to be written to the swap file.1<15>
indicates that dirty pages in memory are to be written to the swap file.0
This parameter is ignored if the swap space was allocated using the Kernel-Managed Swap
Facility (KMSF).
The default is 0.
1276 Guardian Procedure Calls (S)