27.12.2012 Views

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Examples<br />

A locked page from an address space created by the ADRSPACE macro is<br />

unlocked when the address space is destroyed by the ADRSPACE macro.<br />

5. Pages that are locked by this comm<strong>and</strong> are not unlocked by the operation of<br />

the ADRSPACE ISOLATE <strong>and</strong> ADRSPACE PERMIT macros. The ADRSPACE<br />

macros are described in z/<strong>VM</strong>: <strong>CP</strong> Programming Services.<br />

6. The <strong>CP</strong> SYSTEM CLEAR comm<strong>and</strong> unlocks any locked pages <strong>and</strong> sets them to<br />

binary zeros.<br />

7. The virtual pages locked in processor storage are 4 KB (4096-byte) blocks. This<br />

block of storage need not represent all of the user’s virtual storage. The LOCK<br />

comm<strong>and</strong> may be issued as many times as required for one virtual machine to<br />

lock noncontiguous pages of storage. The remaining virtual machine storage<br />

blocks remain pageable.<br />

8. If you omit the MAP option from a LOCK comm<strong>and</strong> <strong>and</strong> you later want to find<br />

the real page, reissue the LOCK with the MAP option. No intervening UNLOCK<br />

is required. The MAP option is the default if the symbol form is used.<br />

1. For the first <strong>and</strong> last page, only the page numbers are specified. For example,<br />

to lock storage locations X'12000' through X'14FFF' of USERA’s primary<br />

address space in real storage <strong>and</strong> display the real storage location for each<br />

page, you could enter:<br />

lock userid usera 12 14 map<br />

VIRTPAGE REALPAGE<br />

USERA 00012000 078F8000<br />

USERA 00013000 06B7C000<br />

USERA 00014000 02A77000<br />

Comm<strong>and</strong> complete<br />

Ready;<br />

You can enter the LOCK comm<strong>and</strong> without the userid parameter:<br />

lock usera 12 14 map<br />

VIRTPAGE REALPAGE<br />

00012000 078F8000<br />

00013000 06B7C000<br />

00014000 02A77000<br />

Comm<strong>and</strong> complete<br />

Ready;<br />

To lock the first three pages of USERA’s primary address space, enter:<br />

lock userid usera 0 2<br />

Comm<strong>and</strong> complete<br />

Ready;<br />

To lock the first three pages of USERA’s address space named MYSPACE,<br />

enter:<br />

lock space usera:myspace 0 2<br />

Comm<strong>and</strong> complete<br />

Ready;<br />

2. To lock pages above the 2 GB storage line for USERA enter:<br />

lock userid usera 123456 123457 map<br />

VIRTPAGE REALPAGE<br />

USERA 00000001_23456000 71A7F000<br />

USERA 00000001_23457000 46B41000<br />

Comm<strong>and</strong> complete<br />

Ready;<br />

The underscore is used for readability if SET UNDERSCORE ON is in effect.<br />

LOCK<br />

Chapter 2. <strong>CP</strong> <strong>Comm<strong>and</strong>s</strong> 573

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!