Jump to content

ADJUNCT: Difference between revisions

From EDM2
Line 16: Line 16:


== Example Code ==
== Example Code ==
<PRE>
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
typedef struct _ADJUNCT FAR*PADJUNCT {
</PRE>
  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


[[Category:Data type]]
[[Category:Data type]]

Revision as of 23:37, 3 August 2018

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.

Remarks

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