/**/ /***************************************************************************/ /** **/ /** © Copyright 2010, Hewlett-Packard Development Company, L.P. **/ /** **/ /** Confidential computer software. Valid license from HP and/or **/ /** its subsidiaries required for possession, use, or copying. **/ /** **/ /** Consistent with FAR 12.211 and 12.212, Commercial Computer Software, **/ /** Computer Software Documentation, and Technical Data for Commercial **/ /** Items are licensed to the U.S. Government under vendor's standard **/ /** commercial license. **/ /** **/ /** Neither HP nor any of its subsidiaries shall be liable for technical **/ /** or editorial errors or omissions contained herein. The information **/ /** in this document is provided "as is" without warranty of any kind and **/ /** is subject to change without notice. The warranties for HP products **/ /** are set forth in the express limited warranty statements accompanying **/ /** such products. Nothing herein should be construed as constituting an **/ /** additional warranty. **/ /** **/ /***************************************************************************/ /********************************************************************************************************************************/ /* Created: 30-Mar-2010 17:27:13 by OpenVMS SDL EV3-3 */ /* Source: 30-NOV-2000 14:33:24 $1$DGA7274:[LIB_H.SRC]LCKCPUDEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $LCKCPUDEF ***/ #ifndef __LCKCPUDEF_LOADED #define __LCKCPUDEF_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 /* */ /* LCKCPU - Lock manager per-CPU context block */ /* */ #define LCKCPU$K_LENGTH 304 /* Length of LCKCPU */ #define LCKCPU$C_LENGTH 304 /* Length of LCKCPU */ #define LCKCPU$C_CACHE_MIN 128 /* low cache limit */ #define LCKCPU$C_CACHE_MAX 256 /* high cache limit */ #define LCKCPU$C_LKB_DPC_MAX 64 /* high LKB dpc limit */ #define LCKCPU$C_RSB_DPC_MAX 32 /* high RSB dpc limit */ #define LCKCPU$C_LCKRQ_CACHE_MIN 10 /* low LCKRQ cache limit */ #define LCKCPU$C_LCKRQ_CACHE_MAX 25 /* high LCKRQ cache limit */ #define LCKCPU$C_FORCE_TRIM_MIN 8 /* Trim to this if force trim set */ #define LCKCPU$C_FORCE_TRIM_MAX 16 /* Set max to this if force trim set */ #define LCKCPU$C_RECOVERY_INCREMENT 4 /* */ #ifdef __cplusplus /* Define structure prototypes */ struct _cpu; #endif /* #ifdef __cplusplus */ #if !defined(__NOBASEALIGN_SUPPORT) && !defined(__cplusplus) /* If using pre DECC V4.0 or C++ */ #pragma __nomember_alignment __quadword #else #pragma __nomember_alignment #endif typedef struct _lckcpu { #pragma __nomember_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __long /* And set ptr size default to 64-bit pointers */ void *lckcpu$q_link; /* link to next LCKCPU block */ #else unsigned __int64 lckcpu$q_link; #endif unsigned short int lckcpu$w_mbo; /* must-be-one field */ unsigned char lckcpu$b_type; /* structure type */ unsigned char lckcpu$b_subtype; /* structure sub-type */ int lckcpu$l_phy_id; /* CPU Id */ unsigned __int64 lckcpu$q_size; /* structure size */ #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __long /* And set ptr size default to 64-bit pointers */ struct _cpu *lckcpu$q_cpudb; /* pointer to per-CPU database */ #else unsigned __int64 lckcpu$q_cpudb; #endif unsigned __int64 lckcpu$q_reserved1; /* reserved */ unsigned __int64 lckcpu$q_reserved2; /* reserved */ unsigned __int64 lckcpu$q_reserved3; /* reserved */ unsigned __int64 lckcpu$q_reserved4; /* reserved */ unsigned __int64 lckcpu$q_lkb_alloc; /* LKB allocations out of cache */ unsigned __int64 lckcpu$q_rsb_alloc; /* RSB allocations out of cache */ unsigned __int64 lckcpu$l_enqnew_loc; /* new lock requests (local) */ unsigned __int64 lckcpu$l_enqnew_in; /* new lock requests (incoming) */ unsigned __int64 lckcpu$l_enqnew_out; /* new lock requests (outgoing) */ unsigned __int64 lckcpu$l_enqcvt_loc; /* conversion requests (local) */ unsigned __int64 lckcpu$l_enqcvt_in; /* conversion requests (incoming) */ unsigned __int64 lckcpu$l_enqcvt_out; /* conversion requests (outgoing) */ unsigned __int64 lckcpu$l_deq_loc; /* dequeue requests (local) */ unsigned __int64 lckcpu$l_deq_in; /* dequeue requests (incoming) */ unsigned __int64 lckcpu$l_deq_out; /* dequeue requests (outgoing) */ unsigned __int64 lckcpu$l_enqwait; /* lock requests that has to wait */ unsigned __int64 lckcpu$l_enqnotqd; /* lock requests not queued */ unsigned __int64 lckcpu$l_blk_loc; /* blocking AST's (local) */ unsigned __int64 lckcpu$l_blk_in; /* blocking AST's (incoming) */ unsigned __int64 lckcpu$l_blk_out; /* blocking AST's (outgoing) */ unsigned __int64 lckcpu$l_dir_in; /* directory functions (incoming) */ unsigned __int64 lckcpu$l_dir_out; /* directory functions (outgoing) */ unsigned __int64 lckcpu$q_lkb_cache_link; unsigned __int64 lckcpu$q_rsb_cache_link; unsigned int lckcpu$l_lkb_cache_count; /* LKB cache */ unsigned int lckcpu$l_lkb_cache_min; unsigned int lckcpu$l_lkb_cache_max; unsigned int lckcpu$l_rsb_cache_count; /* RSB cache */ unsigned int lckcpu$l_rsb_cache_min; unsigned int lckcpu$l_rsb_cache_max; unsigned __int64 lckcpu$q_lkb_dpc_link; unsigned __int64 lckcpu$q_rsb_dpc_link; unsigned int lckcpu$l_lkb_dpc_count; /* LKB delete pending cache queue */ unsigned int lckcpu$l_lkb_dpc_max; unsigned int lckcpu$l_rsb_dpc_count; /* RSB delete pending cache queue */ unsigned int lckcpu$l_rsb_dpc_max; unsigned int lckcpu$l_lckrq_cache_link; /* LCKRQ cache */ unsigned int lckcpu$l_lckrq_cache_count; unsigned int lckcpu$l_lckrq_cache_min; unsigned int lckcpu$l_lckrq_cache_max; unsigned int lckcpu$l_force_trim; /* LBS forces LKB/RSB trim to recover memory */ unsigned int lckcpu$l_force_trim_count; } LCKCPU; #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 /* __LCKCPUDEF_LOADED */