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

CDEV

Prolog  

Control Block Contents  
   CDEV DSECT

Storage Layout  

Cross Reference (Contains links to field and bit definitions)  


CDEV Prolog

 NAME       : DMSCDEV
 DESCRIPTION: CONSOLE DEVICE TABLE MAPPING
 DSECT      : CDEV
 FUNCTION   : THE CONSOLE DEVICE TABLE IS A LINKED
              LIST OF DEVICE ENTRIES CONTAINING INFORMATION
              ABOUT DEVICES OPENED TO A PATH BY THE CONSOLE
              FACILITY. A DEVICE ENTRY IS DELETED WHEN AN
              APPLICATION ISSUES A CONSOLE CLOSE AND NO OTHER
              PATHS ARE OPENED TO THAT DEVICE.
 DEPENDENCIES - FIELDS CONTAINED WITHIN THE CDEVCQY STRUCTURE
              MUST MAP 1 FOR 1 WITH THE FIELDS IN THE DEVICE
              SECTION OF THE CQYSECT MA PPING MACRO. ANY
              CHANGES MUST BE CHECKED AGAINST CQYSECT.

 

CDEV Control Block Content


CDEV DSECT

Hex   Dec Type/Val   Lng Label (dup)    Comments
---- ---- --------- ---- -------------- --------
0000    0 Structure      CDEV           CONSOLE DEVICE TABLE MAPPING
0000    0 Address      4 CDEVNEXT       ADDR OF NEXT DEVICE ENTRY
0004    4 Address      4 CDEVPLIO       PATH ENTRY ADDR OF WHO DID LAST
                                        I/O
0008    8 Address      4 CDEVOPEN       PATH ENTRY ADDR OF WHO LAST
                                        OPENED
000C   12 Address      4 CDEVPWT        PATH ENTRY ADDR OF WHO IS WAITING
0010   16 Bitstring    1 CDEVFLG1       FLAG BYTE
          1... ....      CDEVLMIO       X'80' LINEMODE I/O INTERRUPT
                                        PENDING
          .1.. ....      CDEVWTG        X'40' CONSOLE, NOT APPL, ISSUED
                                        WAIT
0011   17 Bitstring    3 *              RESERVED
0014   20 Signed       4 CDEVSID        SUBSYSTEM ID (XA-MODE ONLY)
0018   24 Dbl-Word     8 CDEVCCWS (0)   FORMAT-0 CONSOLE CCWS
0018   24 Dbl-Word     8 CDEVCCW1 (0)   FIRST CCW WORKAREA
0018   24 Bitstring    1 CDEVCW1C       CCW COMMAND CODE
0019   25 Bitstring    3 CDEVCW1A       DATA ADDRESS
001C   28 Bitstring    1 CDEVCW1F       FLAG BYTE
001D   29 Bitstring    1 CDEVCW1L       CTL FLAGS
001E   30 Signed       2 CDEVCW1B       BYTE COUNT
0020   32 Dbl-Word     8 CDEVCCW2 (0)   SECOND CCW WORKAREA
0020   32 Bitstring    1 CDEVCW2C       CCW COMMAND CODE
0021   33 Bitstring    3 CDEVCW2A       DATA ADDRESS
0024   36 Bitstring    1 CDEVCW2F       FLAG BYTE
0025   37 Bitstring    1 CDEVCW2L       CTL FLAGS
0026   38 Signed       2 CDEVCW2B       BYTE COUNT
0018   24 Dbl-Word     8 CDEVCCX1 (0)   FIRST CCW WORKAREA
0018   24 Bitstring    1 CDEVCX1C       CCW COMMAND CODE
0019   25 Bitstring    1 CDEVCX1F       FLAG BYTE
001A   26 Signed       2 CDEVCX1B       BYTE COUNT
001C   28 Signed       4 CDEVCX1A       DATA ADDRESS
0020   32 Dbl-Word     8 CDEVCCX2 (0)   SECOND CCW WORKAREA
0020   32 Bitstring    1 CDEVCX2C       CCW COMMAND CODE
0021   33 Bitstring    1 CDEVCX2F       FLAG BYTE
0022   34 Signed       2 CDEVCX2B       BYTE COUNT
0024   36 Signed       4 CDEVCX2A       DATA ADDRESS
0028   40 Signed       4 CDEVCQY (0)    SECTION TO MOVE TO USER BUFFER
0028   40 Signed       4 CDEVPNUM       NUMBER OF PATHS OPENED TO DEV
002C   44 Signed       4 CDEVADDR       VIRTUAL DEVICE ADDRESS
          00000030       CDEVD24        * DIAGNOSE X'24' INFORMATION
0030   48 Bitstring    4 CDEVVIRT (0)   VIRTUAL DEVICE INFO
0030   48 Bitstring    1 CDEVVCLS       VIRTUAL DEV TYPE CLASS
0031   49 Bitstring    1 CDEVVTYP       VIRTUAL DEVICE TYPE
0032   50 Bitstring    1 CDEVVSTT       VIRTUAL DEVICE STATUS
0033   51 Bitstring    1 CDEVVFLG       VIRTUAL DEVICE FLAGS
0034   52 Bitstring    4 CDEVREAL (0)   REAL DEVICE INFO
0034   52 Bitstring    1 CDEVRCLS       REAL DEVICE TYPE CLASS
0035   53 Bitstring    1 CDEVRTYP       REAL DEVICE TYPE
0036   54 Bitstring    1 CDEVRMDL       REAL MODEL NUMBER
0037   55 Bitstring    1 CDEVRFTR       REAL FEATURE CODE
0038   56 Bitstring    2 CDEVVCNS (0)   MORE DIAG X'24' INFO
0038   56 Bitstring    1 CDEVLLEN       VIRT. CONS. LINE LENGTH
0039   57 Bitstring    1 CDEVTMCD       VIRT. CONS. TERMINAL CODE
003A   58 Bitstring    1 CDEVATTR       DEVICE ATTRIBUTE FLAGS
          .... .1..      CDEVARMT       X'04' DEV. IS A REMOTE 3270
          .... ..1.      CDEVADSP       X'02' DEV. IS A DISPLAY
          .... ...1      CDEVAVCN       X'01' DEV. IS THE VIRTUAL CONSOLE
003B   59 Bitstring    1 CDEVSTAT       DEVICE STATUS FLAGS
          1... ....      CDEVATTN       X'80' ATTENTION PENDING
          .1.. ....      CDEVDISC       X'40' DEV. IS DISCONNECTED
          ..1. ....      CDEVLINE       X'20' VIRTUAL CONSOLE STATE AT
                                        LAST I/O INTERRUPT
                                        (1=LINEMODE,0=FSCR)
003C   60 Character    6 CDEVDQR        FIRST 6 BYTES OF X'8C' INFO
0042   66 Bitstring    1 CDEVQYCD       DEVICE QUERY CODE
0043   67 Bitstring    1 *              RESERVED
0044   68 Signed       4 CDEV8CRL       LEN OF REMAINING X'8C' INFO
0048   72 Signed       4 *              UNUSED (MAPS TO 8C PTR FIELD IN
                                        CQYSECT FOR MOVE)
004C   76 Signed       4 CDEV8CL        LEN OF TOTAL DIAG X'8C' INFO
          00000050       CDEVLEN        *-CDEV LEN OF DEVICE INFO
                                        EXCLUDING X'8C'
0050   80 Dbl-Word     8 CDEVD8C (0)    DIAGNOSE X'8C' BUFFER
0050   80 Character    6 *              6 BYTES DIAG X'8C' INFO
0056   86 Character 1018 CDEVD8CR       REMAINING DIAG X'8C' INFO
          00000428       CDEVL          *-CDEVCQY LEN TO MOVE WHEN DEV
                                        INFO CHANGES DUE TO RECONNECT
          00000450       CDEVSIZE       *-CDEV SIZE OF DEVICE ENTRY
          0000008A       CDEVDBSZ       ((CDEVSIZE+7)/8) SIZE OF DEV
                                        ENTRY IN DBWRDS

 

CDEV Storage Layout

          
*** CDEV - CONSOLE DEVICE TABLE MAPPING
*
*     +---------------------------+---------------------------+
*   0 |         CDEVNEXT          |         CDEVPLIO          |
*     +---------------------------+---------------------------+
*   8 |         CDEVOPEN          |         CDEVPWT           |
*     +------+--------------------+---------------------------+
*  10 |:VFLG1|////////////////////|         CDEVSID           |
*     +------+--------------------+------+------+-------------+
*  18 |:VCW1C|     CDEVCW1A       |:VCW1F|:VCW1L|  CDEVCW1B   |
*     +------+--------------------+------+------+-------------+
*  20 |:VCW2C|     CDEVCW2A       |:VCW2F|:VCW2L|  CDEVCW2B   |
*     +------+--------------------+------+------+-------------+
*  28
*
*** CDEV - CONSOLE DEVICE TABLE MAPPING
          
*** Overlay for ORG in CDEV
*
*     +------+------+-------------+---------------------------+
*  18 |:VCX1C|:VCX1F|  CDEVCX1B   |         CDEVCX1A          |
*     +------+------+-------------+---------------------------+
*  20 |:VCX2C|:VCX2F|  CDEVCX2B   |         CDEVCX2A          |
*     +------+------+-------------+---------------------------+
*  28 |         CDEVPNUM          |         CDEVADDR          |
*     +------+------+------+------+------+------+------+------+
*  30 |:VVCLS|:VVTYP|:VVSTT|:VVFLG|:VRCLS|:VRTYP|:VRMDL|:VRFTR|
*     +------+------+------+------+------+------+------+------+
*  38 |:VLLEN|:VTMCD|:VATTR|:VSTAT|         CDEVDQR-          |
*     +------+------+------+------+---------------------------+
*  40 |   -(03C)    |:VQYCD|//////|         CDEV8CRL          |
*     +-------------+------+------+---------------------------+
*  48 |///////////////////////////|         CDEV8CL           |
*     +---------------------------+-------------+-------------+
*  50 |/////////////////////////////////////////|             |
*     +-----------------------------------------+             |
*  58 |                                                       |
*     =                       CDEVD8CR                        =
*     |                                                       |
*     +-------------------------------------------------------+
* 450
*
*** Overlay for ORG in CDEV

 

CDEV Cross Reference

Symbol         Dspl Value
-------------- ---- -----
CDEVADDR       002C
CDEVADSP       003A 02
CDEVARMT       003A 04
CDEVATTN       003B 80
CDEVATTR       003A
CDEVAVCN       003A 01
CDEVCCWS       0018
CDEVCCW1       0018
CDEVCCW2       0020
CDEVCCX1       0018
CDEVCCX2       0020
CDEVCQY        0028
CDEVCW1A       0019
CDEVCW1B       001E
CDEVCW1C       0018
CDEVCW1F       001C
CDEVCW1L       001D
CDEVCW2A       0021
CDEVCW2B       0026
CDEVCW2C       0020
CDEVCW2F       0024
CDEVCW2L       0025
CDEVCX1A       001C
CDEVCX1B       001A
CDEVCX1C       0018
CDEVCX1F       0019
CDEVCX2A       0024
CDEVCX2B       0022
CDEVCX2C       0020
CDEVCX2F       0021
CDEVDBSZ       0056 0000008A
CDEVDISC       003B 40
CDEVDQR        003C
CDEVD24        002C 00000030
CDEVD8C        0050
CDEVD8CR       0056
CDEVFLG1       0010
CDEVL          0056 00000428
CDEVLEN        004C 00000050
CDEVLINE       003B 20
CDEVLLEN       0038
CDEVLMIO       0010 80
CDEVNEXT       0000
CDEVOPEN       0008
CDEVPLIO       0004
CDEVPNUM       0028
CDEVPWT        000C
CDEVQYCD       0042
CDEVRCLS       0034
CDEVREAL       0034
CDEVRFTR       0037
CDEVRMDL       0036
CDEVRTYP       0035
CDEVSID        0014
CDEVSIZE       0056 00000450
CDEVSTAT       003B
CDEVTMCD       0039
CDEVVCLS       0030
CDEVVCNS       0038
CDEVVFLG       0033
CDEVVIRT       0030
CDEVVSTT       0032
CDEVVTYP       0031
CDEVWTG        0010 40
CDEV8CL        004C
CDEV8CRL       0044

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