00001 #ifndef pfldef_h 00002 #define pfldef_h 00003 00004 #define PFL_M_INITED 0x1 00005 #define PFL_M_PAGFILFUL 0x2 00006 #define PFL_M_SWPFILFUL 0x4 00007 #define PFL_M_SWAP_FILE 0x8 00008 #define PFL_M_DINSPEN 0x10 00009 #define PFL_M_STOPPER 0x80000000 00010 #define PFL_K_MAX_EXPO_INDEX 6 00011 #define PFL_C_MAX_EXPO_INDEX 6 00012 #define PFL_K_ALLOC2DIR_SHIFT 4 00013 #define PFL_C_ALLOC2DIR_SHIFT 4 00014 #define PFL_K_ALLOC2DIR_SIZE 16 00015 #define PFL_C_ALLOC2DIR_SIZE 16 00016 #define PFL_M_ALLOC2DIR_MASK 65535 00017 00018 #define PFL_K_LENGTH 148 00019 #define PFL_C_LENGTH 148 00020 #define PFL_S_PFLDEF 156 00021 00022 struct _pfl { 00023 struct _pfl *pfl_l_flink; 00024 struct _pfl *pfl_l_blink; 00025 unsigned short int pfl_w_size; 00026 unsigned char pfl_b_type; 00027 unsigned char pfl_b_fill_3; 00028 unsigned int pfl_l_pfc; 00029 struct _wcb *pfl_l_window; 00030 unsigned int pfl_l_vbn; 00031 unsigned int pfl_l_bitmapsiz; 00032 unsigned int pfl_l_frepagcnt; 00033 union { 00034 void *pfl_pq_bitmap; 00035 struct { 00036 void *pfl_l_bitmap; 00037 unsigned int pfl_l_bitmap_hi; 00038 }; 00039 }; 00040 void *pfl_pq_bitmap_dir; 00041 unsigned long long pfl_q_last_dir_quad; 00042 unsigned int pfl_l_allocsiz; 00043 unsigned int pfl_l_rsrvpagcnt; 00044 unsigned int pfl_l_swprefcnt; 00045 int pfl_l_poolbytes; 00046 int pfl_l_s2pages; 00047 unsigned int pfl_l_minfrepagcnt; 00048 unsigned int pfl_l_pgflx; 00049 union { 00050 unsigned int pfl_l_flags; 00051 struct { 00052 unsigned pfl_v_inited : 1; 00053 unsigned pfl_v_pagfilful : 1; 00054 unsigned pfl_v_swpfilful : 1; 00055 unsigned pfl_v_swap_file : 1; 00056 unsigned pfl_v_dinspen : 1; 00057 unsigned pfl_$_fill_1 : 26; 00058 unsigned pfl_v_stopper : 1; 00059 }; 00060 }; 00061 unsigned int pfl_l_refcnt; 00062 unsigned int pfl_l_maxvbn; 00063 int pfl_l_startbyte; 00064 int pfl_l_max_alloc_expo; 00065 int pfl_l_cur_alloc_expo; 00066 int pfl_l_bitmap_quads; 00067 int pfl_l_dir_quads; 00068 int pfl_l_dir_cluster [8]; 00069 char pfl_b_fill_0_ [4]; 00070 unsigned int pfl_l_bitmaploc; 00071 char pfl_b_fill_1_ [4]; 00072 }; 00073 00074 typedef struct PFL * PFL_PQ; 00075 00076 #endif 00077 00078