z/OS MVS Programming: Extended Addressability Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Examples of creating a memory object with a guard area

z/OS MVS Programming: Extended Addressability Guide
SA23-1394-00

The following example creates a 3-megabyte memory object with a 2-megabyte guard area. The guard area is at the high end of the memory object:
IARV64 REQUEST=GETSTOR,                                  
        SEGMENTS=NUM_SEG,                                
        USERTKN=USER_TOKEN,                              
        GUARDSIZE=GUARDPAGES,                            
        GUARDLOC=HIGH,                                   
        CONTROL=AUTH,                                    
        ORIGIN=VIRT64_ADDR                               
The following example increases the size of the guard area by the specified amount.
IARV64 REQUEST=CHANGEGUARD,                              
        CONVERT=FROMGUARD,                               
        MEMOBJSTART=VIRT64_ADDR,                         
        CONVERTSIZE=SEGMENT_SIZE,                        
        ALETVALUE=0                                      
The following example creates a guard area at a specific address within the memory object:
IARV64 REQUEST=CHANGEGUARD,                              
       CONVERT=TOGUARD,                                  
       CONVERTSTART=GUARD_START,                         
       CONVERTSIZE=SEGMENT_SIZE,                         
       ALETVALUE=0                                       

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014