/***************************************************************************/ /** **/ /** 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:52 by OpenVMS SDL V3.7 */ /* Source: 08-NOV-2017 14:51:38 $1$DGA8345:[LIB_H.SRC]POOLCHECKDEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $POOLCHECKDEF ***/ #ifndef __POOLCHECKDEF_LOADED #define __POOLCHECKDEF_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 /*+ */ /* POOLCHECK - Poolcheck SYSGEN parameter layout */ /*- */ #define PCHECK$M_POISON 0x1 #define PCHECK$M_CHECK 0x2 #define PCHECK$M_RINGBUF 0x4 #define PCHECK$M_IRP_FREE 0x8 #define PCHECK$M_LRP_FREE 0x10 #define PCHECK$M_XRP_ALIGN 0x20 #define PCHECK$M_DEALLO_SIZE 0x40 #define PCHECK$M_P1 0x80 #define PCHECK$S_POOLCHECKDEF 4 #if !defined(__NOBASEALIGN_SUPPORT) && !defined(__cplusplus) /* If using pre DECC V4.0 or C++ */ #pragma __nomember_alignment __longword #else #pragma __nomember_alignment #endif typedef struct _poolcheck { #pragma __nomember_alignment __union { int pcheck$l_poolcheck; __struct { __union { unsigned char pcheck$b_flags; /* Flag bits */ __struct { unsigned pcheck$v_poison : 1; /* Poison on deallocation */ /* Enable other features */ unsigned pcheck$v_check : 1; /* Check poisoning on allocation */ /* and poison with allo pattern */ unsigned pcheck$v_ringbuf : 1; /* Enable the ring buffer in the MIN version */ /* ...it is always enabled in MON. */ unsigned pcheck$v_irp_free : 1; /* Poison IRPs on deallocation (obsolete) */ unsigned pcheck$v_lrp_free : 1; /* Poison LRPs on deallocation (obsolete) */ unsigned pcheck$v_xrp_align : 1; /* Check xRP alignment on deallocation (obs) */ unsigned pcheck$v_deallo_size : 1; /* Check deallocation length against allocation length */ unsigned pcheck$v_p1 : 1; /* Do poisoning/checking on P1 space */ } pcheck$r_flags_bits; } pcheck$r_flags_overlay; unsigned char pcheck$b_size_to_check; /* What deallo size to check if DEALO_LENGTH is set */ unsigned char pcheck$b_free; /* Free pattern */ unsigned char pcheck$b_allo; /* Allocated pattern */ } pcheck$r_fill_1_; } pcheck$r_fill_0_; } POOLCHECK; #if !defined(__VAXC) #define pcheck$l_poolcheck pcheck$r_fill_0_.pcheck$l_poolcheck #define pcheck$b_flags pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$r_flags_overlay.pcheck$b_flags #define pcheck$v_poison pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$r_flags_overlay.pcheck$r_flags_bits.pcheck$v_poison #define pcheck$v_check pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$r_flags_overlay.pcheck$r_flags_bits.pcheck$v_check #define pcheck$v_ringbuf pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$r_flags_overlay.pcheck$r_flags_bits.pcheck$v_ringbuf #define pcheck$v_irp_free pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$r_flags_overlay.pcheck$r_flags_bits.pcheck$v_irp_free #define pcheck$v_lrp_free pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$r_flags_overlay.pcheck$r_flags_bits.pcheck$v_lrp_free #define pcheck$v_xrp_align pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$r_flags_overlay.pcheck$r_flags_bits.pcheck$v_xrp_align #define pcheck$v_deallo_size pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$r_flags_overlay.pcheck$r_flags_bits.pcheck$v_deallo_size #define pcheck$v_p1 pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$r_flags_overlay.pcheck$r_flags_bits.pcheck$v_p1 #define pcheck$b_size_to_check pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$b_size_to_check #define pcheck$b_free pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$b_free #define pcheck$b_allo pcheck$r_fill_0_.pcheck$r_fill_1_.pcheck$b_allo #endif /* #if !defined(__VAXC) */ /*+ */ /* PCHK_REASON - Poolcheck bugcheck reason codes */ /* */ /* This defines the poolcheck bugcheck codes pushed on the stack when a */ /* poolcheck bugcheck is declared. */ /* */ /*- */ #define PCHK_REASON$_CORRUPT 0 /* Corrupted packet */ #define PCHK_REASON$_ALIGN 1 /* Bad alignment (obsolete) */ #define PCHK_REASON$_XRP_ALIGN 2 /* Bad alignment of xRP packet (obsolete) */ #define PCHK_REASON$_PAGED 3 /* Paged block is partially outside */ #define PCHK_REASON$_NPAGED 4 /* Npaged block is partially outside */ #define PCHK_REASON$_IPL 5 /* Called P1 routines with IPL too high */ #define PCHK_REASON$_AGGLOM 6 /* Agglomeration not done */ #define PCHK_REASON$_UNBALANCED 7 /* Deallocation and allocation were not the same size */ #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 /* __POOLCHECKDEF_LOADED */