The PGFREE macro makes virtual storage pages, below 16 megabytes, that were fixed via the PGFIX macro eligible for page-out. The PGFREE function is available only to authorized users. PGFREE must be issued by the same task that issued the PGFIX, otherwise PGFREE has no effect.
The standard form of the PGFREE macro is written as follows:
Syntax | Description |
---|---|
name | name: Symbol. Begin name in column 1. |
␢ | One or more blanks must precede PGFREE. |
PGFREE | |
␢ | One or more blanks must follow PGFREE. |
L | |
,LA=list addr | list addr: A-type address, or register (1) or (2) - (12). |
R | |
,A=start addr | start addr: A-type address, or register (1) or (2) - (12). |
,ECB=ecb addr | ecb addr: A-type address, or register (0) or (2) - (12). |
,EA=end addr | end addr: A-type address, or register (2) - (12) or (15). |
Default: start addr + 1 | |
,ANYWHER=N | Default: ANYWHER=N |
,ANYWHER=Y | |
,RELEASE=N | Default: RELEASE=N |
,RELEASE=Y | Note: RELEASE=Y may only be specified with EA above. |
,RELATED=value | value: Any valid macro keyword specification. |
The parameters are explained as follows:
When PGFREE macro returns control to your program, GPR 15 contains one of the following hexadecimal return codes.
Return Code | Meaning |
---|---|
00 | Meaning: Operation completed normally. |
04 | Meaning: Operation abnormally terminated. Operation incomplete because of invalid address in virtual subarea list entry. |
10 | Meaning: Operation abnormally terminated. Virtual subarea list entry or ECB address invalid. |
PGFREE R,A=(R3)
PGFREE R,A=(R3),EA=(R4)
PGFREE R,A=(R3),EA=(R4),ECB=(R5),RELEASE=Y