00001 #ifndef lkbdef_h 00002 #define lkbdef_h 00003 00004 #define LKB_M_FLAGS_VALID 0x4 00005 #define LKB_M_PKAST 0x10 00006 #define LKB_M_NODELETE 0x20 00007 #define LKB_M_QUOTA 0x40 00008 #define LKB_M_KAST 0x80 00009 #define LKB_K_ACB64LEN 64 00010 #define LKB_M_DCPLAST 0x1 00011 #define LKB_M_ASYNC 0x4 00012 #define LKB_M_BLKASTQED 0x8 00013 #define LKB_M_MSTCPY 0x10 00014 #define LKB_M_NOQUOTA 0x20 00015 #define LKB_M_TIMOUTQ 0x40 00016 #define LKB_M_WASSYSOWN 0x80 00017 #define LKB_M_CVTTOSYS 0x100 00018 #define LKB_M_PROTECT 0x200 00019 #define LKB_M_RESEND 0x400 00020 #define LKB_M_RM_RBRQD 0x800 00021 #define LKB_M_FLOCK 0x1000 00022 #define LKB_M_IP 0x2000 00023 #define LKB_M_CACHED 0x4000 00024 #define LKB_M_RNGBLK 0x8000 00025 #define LKB_M_BRL 0x10000 00026 #define LKB_M_NEWSUBRNG 0x20000 00027 #define LKB_M_CVTSUBRNG 0x40000 00028 #define LKB_M_RNGCHG 0x80000 00029 #define LKB_M_2PC_IP 0x100000 00030 #define LKB_M_2PC_PEND 0x200000 00031 #define LKB_M_BLKASTFLG 0x400000 00032 #define LKB_M_GRSUBRNG 0x800000 00033 #define LKB_M_PCACHED 0x1000000 00034 #define LKB_M_VALBLKRD 0x2000000 00035 #define LKB_M_VALBLKWRT 0x4000000 00036 #define LKB_M_DPC 0x8000000 00037 #define LKB_M_PERCPU 0x10000000 00038 #define LKB_M_INDEX 0xFFFFFF 00039 #define LKB_K_GRANTED 1 00040 #define LKB_K_CONVERT 0 00041 #define LKB_K_WAITING -1 00042 #define LKB_K_RETRY -2 00043 #define LKB_K_SCSWAIT -3 00044 #define LKB_K_RSPNOTQED -4 00045 #define LKB_K_RSPQUEUED -5 00046 #define LKB_K_RSPGRANTD -6 00047 #define LKB_K_RSPDOLOCL -7 00048 #define LKB_K_RSPRESEND -8 00049 #define LKB_K_RSPWAIT -9 00050 #define LKB_K_RSP2PCRDY -10 00051 #define LKB_K_RSPFATAL -11 00052 #define LKB_M_DBLKAST 0x2 00053 #define LKB_K_LENGTH 248 00054 #define LKB_C_LENGTH 248 00055 #define LKB_S_LKBDEF 248 00056 00057 struct _lkb { 00058 struct _acb *lkb_l_astqfl; 00059 struct _acb *lkb_l_astqbl; 00060 unsigned short int lkb_w_size; 00061 unsigned char lkb_b_type; 00062 unsigned char lkb_b_rmod; 00063 unsigned long lkb_l_pid; 00064 unsigned long lkb_l_ast; 00065 unsigned long lkb_l_astprm; 00066 unsigned long lkb_l_kast; 00067 unsigned long lkb_l_cplastadr; 00068 unsigned long lkb_l_blkastadr; 00069 unsigned int lkb_l_flags; 00070 unsigned int lkb_l_status; 00071 unsigned int lkb_l_lkst1; 00072 unsigned int lkb_l_lkst2; 00073 unsigned char lkb_b_rqmode; 00074 unsigned char lkb_b_grmode; 00075 unsigned char lkb_b_state; 00076 unsigned char lkb_b_efn; 00077 void *lkb_l_sqfl; 00078 void *lkb_l_sqbl; 00079 void *lkb_l_ownqfl; 00080 void *lkb_l_ownqbl; 00081 struct _lkb *lkb_l_parent; 00082 unsigned short lkb_w_refcnt; 00083 unsigned char lkb_b_tslt; 00084 unsigned char lib_b_res; 00085 struct _rsb *lkb_l_rsb; 00086 unsigned long lkb_l_lksb; 00087 unsigned int lkb_l_remlkid; 00088 union { 00089 unsigned int lkb_l_csid; 00090 unsigned long lkb_l_oldastprm; 00091 }; 00092 int (*lkb_pq_oldblkast)(); 00093 unsigned int lkb_l_duetime; 00094 }; 00095 00096 #endif 00097 00098