Jump to content

ADJUNCT: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:


== Type ==
== Type ==
  PSDJUNCT         [[pNextAdj]];  
  PSDJUNCT     pNextAdj;  
  [[USHORT]]       AdjLenght;
  USHORT      AdjLenght;
  USHORT           AdjType;
  USHORT       AdjType;


== C Declaration Method ==
== C Declaration Method ==
Line 14: Line 14:
;AdjType: Type of adjunct list item.
;AdjType: Type of adjunct list item.


== Remarks ==
== Example Code ==


==Example Code==
  typedef struct _ADJUNCT FAR*PADJUNCT {
  typedef struct _ADJUNCT FAR*PADJUNCT {
   struct ADJHEADER {
   struct ADJHEADER {
     PSDJUNCT         pNextAdj;         /* Pointer to the next adjunct list item. */
     PSDJUNCT     pNextAdj;     /* Pointer to the next adjunct list item. */
     USHORT           AdjLenght;       /* Length of adjunct list item. */
     USHORT       AdjLenght;   /* Length of adjunct list item. */
     USHORT           AdjType;         /* Type of adjunct list item. */
     USHORT       AdjType;     /* Type of adjunct list item. */
   } adjheader;
   } adjheader;
   union {
   union {
     USHORT           AdjBase;
     USHORT       AdjBase;
     USHORT           SCSI_Target_LUN;
     USHORT       SCSI_Target_LUN;
     USHORT           Adapter_Number;
     USHORT       Adapter_Number;
     USHORT           Device_Number;
     USHORT       Device_Number;
     USHORT           PCI_DevFunc;
     USHORT       PCI_DevFunc;
     USHORT           Model_Info;
     USHORT       Model_Info;
     ADD_UNIT         Add_Unit;
     ADD_UNIT     Add_Unit;
     DAS_VOL         Dasd_Vol;
     DAS_VOL     Dasd_Vol;
     [[DRIVERINFO]]       DriverInfo;
     [[DRIVERINFO]] DriverInfo;
   } AdjType;
   } AdjType;
  } ADJUNCT;
  } ADJUNCT;

Latest revision as of 17:20, 2 May 2025

Linked list of adjunct data structures.

Type

PSDJUNCT     pNextAdj; 
USHORT       AdjLenght;
USHORT       AdjType;

C Declaration Method

typedef struct

Fields

pNextAdj
Pointer to the next adjunct list item.
AdjLenght
Length of adjunct list item.
AdjType
Type of adjunct list item.


Example Code

typedef struct _ADJUNCT FAR*PADJUNCT {
  struct ADJHEADER {
    PSDJUNCT     pNextAdj;     /* Pointer to the next adjunct list item. */
    USHORT       AdjLenght;    /* Length of adjunct list item. */
    USHORT       AdjType;      /* Type of adjunct list item. */
  } adjheader;
  union {
    USHORT       AdjBase;
    USHORT       SCSI_Target_LUN;
    USHORT       Adapter_Number;
    USHORT       Device_Number;
    USHORT       PCI_DevFunc;
    USHORT       Model_Info;
    ADD_UNIT     Add_Unit;
    DAS_VOL      Dasd_Vol;
    DRIVERINFO  DriverInfo;
  } AdjType;
} ADJUNCT;

NEAR * NPADJUNCT