Programming Interface Information:
This information is NOT intended to be
used as Programming Interfaces of z/VM.

LINKBLK

Prolog  

Control Block Contents  
   LINKBLK DSECT

Storage Layout  

Cross Reference (Contains links to field and bit definitions)  


LINKBLK Prolog

 Name       : DMSLINK
 Description: Link Block
 DSECT      : LINKBLK
 Function   : Mapping of the link block section -
              LINKBLK. Mapping macro which maps link
              information for modules loaded via the LINK,
              XCTL, LOAD or ATTACH macros. The link blocks
              are anchored in NUCON at LINKSTRT.

 

LINKBLK Control Block Content


LINKBLK DSECT

Hex   Dec Type/Val   Lng Label (dup)    Comments
---- ---- --------- ---- -------------- --------
0000    0 Structure      LINKBLK        Link Block
0000    0 Signed       4 LINKPTR        pointer to next LINKBLK
0004    4 Signed       4 LINKAREA       phase storage area location
0008    8 Signed       4 LINKBACK       backward LINKBLK pointer
000C   12 Signed       4 LINKBYTE       length (bytes) of phase area
0010   16 Signed       4 LINKNAM (2)    phase name
0018   24 Signed       4 SAVPSW (2)     old SVC PSW for LINK
0020   32 Signed       4 LINKENT        entry location of phase
0024   36 Bitstring    1 LINKCNT (2)    use count
0026   38 Bitstring    1 LINKFLG        flag byte
          1... ....      LINAM31        X'80' callee is in amode 31
          .1.. ....      LINAM24        X'40' callee is in amode 24
          11.. ....      LINAMANY       X'C0' CALLEE IS IN AMODE ANY
          ..1. ....      LINPRV         X'20' program previously loaded
          .... 1...      LINCAM31       X'08' caller is in amode 31
          .... .1..      LINOSLD        X'04' code is in OS loadlib
          .... ..1.      LINTEXT        X'02' code is in text form
          .... ...1      LINMOD         X'01' code is in a CMS module
0027   39 Bitstring    1 LINKFLG2       more flags (for OS LOADLIB use)
          1... ....      LINRENT        X'80' MODULE IS REENTRANT
          .1.. ....      LINREUS        X'40' MODULE IS REUSABLE
          ..1. ....      LINOVLY        X'20' MODULE IS AN OS TYPE
                                        OVERLAY
          .... 1...      LINLKC         X'08' MODULE IS LOCKED IN CORE
          .... .1..      LINCLD         X'04' MODULE CALLED AT LEAST ONCE
0028   40 Bitstring    1 LINKTYPE       macro used to bring in code
          .... .11.      LINLINK        X'06' invoked by LINK macro
          .... .111      LINXCTL        X'07' invoked by XCTL macro
          .... 1...      LINLOAD        X'08' invoked by LOAD macro
          ..1. 1.1.      LINATTA        X'2A' invoked by ATTACH macro
002C   44 Signed       4 SVAREA (19)    save area for ATTACHee
0078  120 Signed       4 SAVR15         register 15 save
007C  124 Signed       4 LINKTASK       Task/SSAVE ID
0080  128 Dbl-Word     8 * (0)
          00000080       SAVLEN         (*-LINKBLK) BLOCK LENGTH

 

LINKBLK Storage Layout

          
*** LINKBLK - Link Block
*
*     +---------------------------+---------------------------+
*   0 |         LINKPTR           |         LINKAREA          |
*     +---------------------------+---------------------------+
*   8 |         LINKBACK          |         LINKBYTE          |
*     +---------------------------+---------------------------+
*  10 |                       LINKNAM                         |
*     +-------------------------------------------------------+
*  18 |                        SAVPSW                         |
*     +---------------------------+-------------+------+------+
*  20 |         LINKENT           |  LINKCNT    |:KFLG |:KFLG2|
*     +------+--------------------+-------------+------+------+
*  28 |:KTYPE|////////////////////|                           |
*     +------+--------------------+                           |
*  30 |                                                       |
*     =                        SVAREA                         =
*     |                                                       |
*     +---------------------------+---------------------------+
*  78 |          SAVR15           |         LINKTASK          |
*     +---------------------------+---------------------------+
*  80
*
*** LINKBLK - Link Block

 

LINKBLK Cross Reference

Symbol         Dspl Value
-------------- ---- -----
LINAMANY       0026 C0
LINAM24        0026 40
LINAM31        0026 80
LINATTA        0028 2A
LINCAM31       0026 08
LINCLD         0027 04
LINKAREA       0004
LINKBACK       0008
LINKBYTE       000C
LINKCNT        0024
LINKENT        0020
LINKFLG        0026
LINKFLG2       0027
LINKNAM        0010
LINKPTR        0000
LINKTASK       007C
LINKTYPE       0028
LINLINK        0028 06
LINLKC         0027 08
LINLOAD        0028 08
LINMOD         0026 01
LINOSLD        0026 04
LINOVLY        0027 20
LINPRV         0026 20
LINRENT        0027 80
LINREUS        0027 40
LINTEXT        0026 02
LINXCTL        0028 07
SAVLEN         0080 00000080
SAVPSW         0018
SAVR15         0078
SVAREA         002C

This information is based on z/VM V4R3.0.
Last updated on 1 May 2002 at 14:23:05 EDT.
Copyright IBM Corporation, 1990, 2002