[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Understanding the Diagnostic Subsystem for AIX

Example TU Local Header File

/*
 *   COMPONENT_NAME: TU_DEVICE
 *
 *   FUNCTIONS: TU Header file
 */

#ifndef _h_tu
#define _h_tu

#include <diag/tucb.h>
#include <sys/pdiagex_dds.h>

#define TU_SUCCESS 0
#define TU_DEVICE_BUSY  1
#define TU_CHILD_BUSY   2
#define TU_SOFTWARE_ERROR 3
#define TU_INVALID_PARAM  4
#define TU_INCORRECT_STATE 5

#define TU_OPEN   0x01
       etc, etc
#define TU_CLOSE  0xEFFF

typedef struct {
      int adapter_diagnose_state;
      pdiagex_dds_t dds;
      pdiag_info_handle_t pdiagex_handle;
} TU_GLOBAL_DATA;

#endif
 

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]