/***************************************************************************/ /** **/ /** HPE CONFIDENTIAL. This software is confidential proprietary software **/ /** licensed by Hewlett-Packard Enterprise Development, LP, and is not **/ /** authorized to be used, duplicated OR disclosed to anyone without the **/ /** prior written permission of HPE. **/ /** © 2023 Copyright Hewlett-Packard Enterprise Development, LP **/ /** **/ /** VMS SOFTWARE, INC. CONFIDENTIAL. This software is confidential **/ /** proprietary software licensed by VMS Software, Inc., and is not **/ /** authorized to be used, duplicated or disclosed to anyone without **/ /** the prior written permission of VMS Software, Inc. **/ /** © 2023 Copyright VMS Software, Inc. **/ /** **/ /***************************************************************************/ /********************************************************************************************************************************/ /* Created: 9-Nov-2023 12:06:33 by OpenVMS SDL V3.7 */ /* Source: 18-MAY-2022 12:05:25 $1$DGA8345:[LIB_H.SRC]NPOOL_DATA.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $NPHDEF ***/ #ifndef __NPHDEF_LOADED #define __NPHDEF_LOADED 1 #pragma __nostandard /* This file uses non-ANSI-Standard features */ #pragma __member_alignment __save #pragma __nomember_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __save /* Save the previously-defined required ptr size */ #pragma __required_pointer_size __short /* And set ptr size default to 32-bit pointers */ #endif #ifdef __cplusplus extern "C" { #define __unknown_params ... #define __optional_params ... #else #define __unknown_params #define __optional_params ... #endif #ifndef __struct #if !defined(__VAXC) #define __struct struct #else #define __struct variant_struct #endif #endif #ifndef __union #if !defined(__VAXC) #define __union union #else #define __union variant_union #endif #endif /*+ */ /* DEFINITION OF NON-PAGED POOL HISTORY RECORD IN RING BUFFER */ /*- */ #define NPH$C_ALONONPAGED 0 /* Caller was EXE$ALONONPAGED */ #define NPH$C_ALONPAGVAR 1 /* Caller was EXE$ALONPAGVAR */ #define NPH$C_DEANONPAGED 2 /* Caller was EXE$DEANONPAGED */ #define NPH$C_DEANONPGDSIZ 3 /* Caller was EXE$DEANONPGDSIZ */ #define NPH$C_ALLOCATE_POOL_NPP 4 /* Caller was EXE$ALLOCATE_POOL with NPP pooltype */ #define NPH$C_ALLOCATE_POOL_NPP_ALIGNED 5 /* Caller was EXE$ALLOCATE_POOL with NPP pooltype and non-0 alignment */ #define NPH$C_DEALLOCATE_POOL_NPP 6 /* Caller was EXE$DEALLOCATE_POOL with NPP pooltype and size in memory */ #define NPH$C_DEALLOCATE_POOL_NPP_SIZED 7 /* Caller was EXE$DEALLOCATE_POOL with NPP pooltype and size specified */ #define NPH$C_ALLOCATE_POOL_BAP 8 /* Caller was EXE$ALLOCATE_POOL with BAP pooltype */ #define NPH$C_ALLOCATE_POOL_BAP_ALIGNED 9 /* Caller was EXE$ALLOCATE_POOL with BAP pooltype and non-0 alignment */ #define NPH$C_DEALLOCATE_POOL_BAP 10 /* Caller was EXE$DEALLOCATE_POOL with BAP pooltype and size in memory */ #define NPH$C_DEALLOCATE_POOL_BAP_SIZED 11 /* Caller was EXE$DEALLOCATE_POOL with BAP pooltype and size specified */ #define NPH$C_POOLZONE_ALLOCATE 12 /* Caller was EXE$POOL_ALLOCATE */ #define NPH$C_POOLZONE_DEALLOCATE 13 /* Caller was EXE$POOL_DEALLOCATE */ #define NPH$C_BAP_NOT_CONTIGUOUS 14 /* Failure of BAP due to non-contiguous physical memory */ #define NPH$C_ALLOCATE_POOL_NPP_VAR 15 /* Allocating NPP from the variable pool */ #define NPH$C_ALLOCATE_POOL_BAP_VAR 16 /* Allocating BAP from the variable pool */ #define NPH$C_ALONONPAGED_ALN 17 /* Allocating with EXE$ALONONPAGED_ALN */ #define NPH$C_EXPAND_NPP 18 /* Pool expansion */ #define NPH$C_EXPAND_BAP 19 /* Pool expansion */ #define NPH$C_MAX_FUNC_TYPE 20 /* Maximum expected function type for SDA */ /* X86 only for S2 nonpaged pool order here matters with SDA */ #define NPH$C_ALONPAGED_S2 100 /* Caller was EXE$ALONONPAGED_S2 */ #define NPH$C_ALONPAGED_BC_S2 101 /* Caller was a bugcheck in EXE$ALONONPAGED_S2 */ #define NPH$C_ALONPAGED_FAIL_S2 102 /* Caller was a failed request in EXE$ALONONPAGED_S2 */ #define NPH$C_ALONPAGED_VAR_S2 103 /* Caller was MMG$ALONPAGED_VAR_S2 */ #define NPH$C_ALONPAGED_VAR_BC_S2 104 /* Caller was a bugcheck in MMG$ALONPAGED_VAR_S2 */ #define NPH$C_ALONPAGED_VAR_FAIL_S2 105 /* Caller was a failed request in MMG$ALONPAGED_VAR_S2 */ #define NPH$C_ALONPAGED_LIST_S2 106 /* Caller was MMG$ALONPAGED_LIST_S2 */ #define NPH$C_ALONPAGED_LIST_FAIL_S2 107 /* Caller was failed request in MMG$ALONPAGED_LIST_S2 */ #define NPH$C_DEALONPAGED_S2 108 /* Caller was EXE$DEALONPAGED_S2 */ #define NPH$C_DEALONPAGED_BC_S2 109 /* Caller was a bugcheck in EXE$DEALONPAGED_S2 */ #define NPH$C_DEALONPAGED_FAIL_S2 110 /* Caller was failed request in EXE$DEALONPAGED_S2 */ #define NPH$C_DEALONPAGED_LIST_S2 111 /* Caller was MMG$DEALONPAGED_LIST_S2 */ #define NPH$C_DEALONPAGED_LIST_FAIL_S2 112 /* Caller was failed request in MMG$DEALONPAGED_LIST_S2 */ #define NPH$C_NPAGED_ALLOC_S2 113 /* Caller was MMG$NPAGED_ALLOCATE_BASE_S2 */ #define NPH$C_NPAGED_ALLOC_BC_S2 114 /* Caller was a bugcheck in MMG$NPAGED_ALLOCATE_BASE_S2 */ #define NPH$C_NPAGED_ALLOC_FAIL_S2 115 /* Caller was a failed request in MMG$NPAGED_ALLOCATE_BASE_S2 */ #define NPH$C_NPAGED_DEALLOC_S2 116 /* Caller was from/based from MMG$NPAGED_DEALLOCATE_BASE_S2 */ #define NPH$C_NPAGED_DEALLOC_BC_S2 117 /* Caller was a bugcheck in MMG$NPAGED_DEALLOCATE_BASE_S2 */ /* If the expansion order is changed, also change poolalc_base_s2.c and possibly sda */ #define NPH$C_NPAG_EXP_PASS_S2 118 /* Caller was expand_pool_map_s2 ended with success and must be first function name for exp\ and s2. */ #define NPH$C_NPAG_EXP_FORK_S2 119 /* Caller was expand_pool_map_s2 and fork required */ #define NPH$C_NPAG_EXP_INSUF_POOL_S2 120 /* Caller was expand_pool_map_s2 the available pool exp does not meet the min req */ #define NPH$C_NPAG_EXP_FLUCHK_FAIL_S2 121 /* Called was Pool_expand_fork_s2 and fluid check failed */ #define NPH$C_NPAG_EXP_ALLO_PFN_FAIL_S2 122 /* Called was Pool_expand_fork_s2 and mmg$allocate_sva_and_pfn failed */ #define NPH$C_NPAG_EXP_FAIL_S2 123 /* Called was expand_pool_map_s2 general expand failure catch all and the last function nam\ e for S2 expand */ #define NPH$C_NPAG_FLUSH_PASS_S2 124 /* Called flush_lookaside_list_s2 successfully flushed pool (mon only) */ #define NPH$C_NPAG_FLUSH_FAIL_S2 125 /* Called flush_lookaside_list_s2 catch all failure to find a match */ #define NPH$C_NPAG_FLUSH_TMOUT_S2 126 /* Called flush_lookaside_list_s2 timed out before finding a match */ #define NPH$C_NPAG_FLUSH_NOMTCH_S2 127 /* Called flush_lookaside_list_s2 failed as no match found in the list (Mon only) */ #define NPH$C_MAX_FUNC_TYPE_S2 128 /* X86 Maximum secondary function type */ /* give S0 NPP functions a place to expand to */ #define NPH$S_NPHDEF 40 /* Old size name - synonym */ typedef struct _nph { /* These constants have a 31 size limit. SDA will not build if larger */ /* NOTE - IF the increment count changes here, SO must the increment in */ /* [SDA]POOL.MAR and [SDA]SHOWPOOL.C for the ring_names */ __union { unsigned __int64 nph$q_addr; /* Address of packet */ __struct { unsigned int nph$l_addr_low; /* low longword of pkt addr */ unsigned int nph$l_addr_high; /* high longword of pkt addr */ } nph$r_fill_4_; } nph$r_fill_3_; unsigned __int64 nph$q_rip; /* Instruction Pointer */ unsigned int nph$l_unused2; /* Maintain alignment */ unsigned short int nph$w_function; /* Function of caller */ unsigned char nph$b_type; /* Pkt. type */ unsigned char nph$b_rmod; /* Pkt. RMOD or subtype */ unsigned int nph$l_size; /* Size of pkt. being manip. */ unsigned char nph$b_ipl; /* IPL of caller */ unsigned char nph$b_cpu; /* CPU number function was called on */ unsigned short int nph$w_unused; /* Round up to quadword */ __union { unsigned __int64 nph$q_time; /* System time of operation */ __struct { unsigned int nph$l_time_low; /* low longword of time */ unsigned int nph$l_time_high; /* high longword of time */ } nph$r_fill_6_; } nph$r_fill_5_; } NPH; #if !defined(__VAXC) #define nph$q_addr nph$r_fill_3_.nph$q_addr #define nph$l_addr_low nph$r_fill_3_.nph$r_fill_4_.nph$l_addr_low #define nph$l_addr_high nph$r_fill_3_.nph$r_fill_4_.nph$l_addr_high #define nph$q_time nph$r_fill_5_.nph$q_time #define nph$l_time_low nph$r_fill_5_.nph$r_fill_6_.nph$l_time_low #define nph$l_time_high nph$r_fill_5_.nph$r_fill_6_.nph$l_time_high #endif /* #if !defined(__VAXC) */ /* */ /* X86 structure for S2 nonpaged pool history buffer */ /* */ #define NPH_S2$S_NPH_SIZE 48 typedef struct _nph_s2 { __union { unsigned __int64 nph_s2$q_addr; /* Address of packet */ __struct { unsigned int nph_s2$l_addr_low; /* low longword of pkt addr */ unsigned int nph_s2$l_addr_high; /* high longword of pkt addr */ } nph_s2$r_fill_8_; } nph_s2$r_fill_7_; unsigned __int64 nph_s2$q_rip; /* Instruction Pointer */ unsigned int nph_s2$l_unused1; /* Maintain alignment */ unsigned short int nph_s2$w_function; /* Function of caller */ unsigned char nph_s2$b_type; /* Pkt. type */ unsigned char nph_s2$b_rmod; /* Pkt. RMOD or subtype */ /* size location same as NPH for SDA */ unsigned __int64 nph_s2$q_size; /* Size of pkt. being manip. */ unsigned int nph_s2$l_unused2; /* quad alignment */ unsigned char nph_s2$b_ipl; /* IPL of caller */ unsigned char nph_s2$b_cpu; /* CPU number function was called on */ unsigned short int nph_s2$w_unused3; /* Round up to quadword */ __union { unsigned __int64 nph_s2$q_time; /* System time of operation */ __struct { unsigned int nph_s2$l_time_low; /* low longword of time */ unsigned int nph_s2$l_time_high; /* high longword of time */ } nph_s2$r_fill_10_; } nph_s2$r_fill_9_; } NPH_S2; #if !defined(__VAXC) #define nph_s2$q_addr nph_s2$r_fill_7_.nph_s2$q_addr #define nph_s2$l_addr_low nph_s2$r_fill_7_.nph_s2$r_fill_8_.nph_s2$l_addr_low #define nph_s2$l_addr_high nph_s2$r_fill_7_.nph_s2$r_fill_8_.nph_s2$l_addr_high #define nph_s2$q_time nph_s2$r_fill_9_.nph_s2$q_time #define nph_s2$l_time_low nph_s2$r_fill_9_.nph_s2$r_fill_10_.nph_s2$l_time_low #define nph_s2$l_time_high nph_s2$r_fill_9_.nph_s2$r_fill_10_.nph_s2$l_time_high #endif /* #if !defined(__VAXC) */ #pragma __member_alignment __restore #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __restore /* Restore the previously-defined required ptr size */ #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __NPHDEF_LOADED */