Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../../usr/include/sys/kstat2_common.h
Real path: /usr/include/sys/kstat2_common.h
Zurück
/* * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved. */ #ifndef _SYS_KSTAT2_COMMON_H #define _SYS_KSTAT2_COMMON_H /* * Definitions shared between kernel, libkstat2 and user-space clients. */ #ifdef __cplusplus extern "C" { #endif /** * @brief Flags for maps */ typedef enum kstat2_map_flag { KSTAT2_MAPF_NONE = 0x00, /**< No flags present */ KSTAT2_MAPF_DORM = 0x01 /**< Kstat is dormant */ } kstat2_map_flag_t; /** * @brief Metadata type for Maps - 2^16 max. */ typedef enum kstat2_metatype { KSTAT2_MT_NONE = 0, /**< No type */ KSTAT2_MT_QUEUE = 1, /**< Queue data */ KSTAT2_MT_IO = 2, /**< IO data */ KSTAT2_MT_INTR = 3, /**< Interrupt data */ KSTAT2_MT_TIMER = 4, /**< Timer data (v1 compatibility) */ KSTAT2_MT_HIST = 5 /**< Histogram data */ } kstat2_metatype_t; /** * @brief Metadata flags for maps - 32 max. */ typedef enum kstat2_metaflag { KSTAT2_MF_NONE = 0x00, /**< No flags present */ KSTAT2_MF_STABLE = 0x01, /**< Kstat is stable across Solaris releases */ KSTAT2_MF_PRIV = 0x02 /**< Kstat has privileged read access */ } kstat2_metaflag_t; /* ! [kstat2_nv_type_t] */ /** * @brief Type of a name/value pair's value. */ typedef enum kstat2_nv_type { KSTAT2_NVVT_MAP = 0, /**< Nested Name/Value map */ KSTAT2_NVVT_INT = 1, /**< 64-bit unsigned integer */ KSTAT2_NVVT_INTS = 2, /**< Array of 64-bit unsigned integers */ KSTAT2_NVVT_STR = 3, /**< Null-terminated C string */ KSTAT2_NVVT_STRS = 4 /**< Array of null-terminated C strings */ } kstat2_nv_type_t; /* ! [kstat2_nv_type_t] */ /** * @anchor nvflags @name Name/value pair flags. * @brief Flags for name/value pairs - 16 max. */ typedef enum kstat2_nv_flag { KSTAT2_NVF_NONE = 0x00, /**< No flags present */ KSTAT2_NVF_INVAL = 0x01, /**< Value is invalid */ _KSTAT2_NVF_V1ONLY = 0x8000 /**< Private flag indicating v1 kstat */ } kstat2_nv_flag_t; /** * @brief Metadata type for Name/Value pairs - 2^16 max. */ typedef enum kstat2_nv_metatype { KSTAT2_NVMT_UNK = 0, /**< Unknown type */ KSTAT2_NVMT_ID = 1, /**< Identifier, e.g. CPU type, CPU chip ID */ KSTAT2_NVMT_CNT = 2, /**< Count, e.g. network packets, disk blocks */ KSTAT2_NVMT_T_EPOCH = 3, /**< Time since UNIX epoch */ KSTAT2_NVMT_T_REL = 4, /**< Time relative to boot */ KSTAT2_NVMT_T_ACC = 5, /**< Accumulated time since boot */ KSTAT2_NVMT_PCT = 6, /**< Percentage, 0-100 */ KSTAT2_NVMT_ADDR = 7, /**< Memory address */ KSTAT2_NVMT_TEMP_C = 8, /**< Temperature in centigrade */ KSTAT2_NVMT_RPM = 9, /**< Revolutions per minute */ KSTAT2_NVMT_VOLT = 10, /**< Voltage */ KSTAT2_NVMT_WATT = 11, /**< Power consumption */ KSTAT2_NVMT_CURR = 12, /**< Current */ KSTAT2_NVMT_BYTES = 13, /**< Byte count */ KSTAT2_NVMT_BITS = 14, /**< Bit count */ KSTAT2_NVMT_STATE = 15, /**< State, e.g. CPU state */ KSTAT2_NVMT_FREQ = 16, /**< Frequency (Hz) */ KSTAT2_NVMT_FLAGS = 17, /**< Bitwise flags */ KSTAT2_NVMT_JOULE = 18 /**< Energy in Joules */ } kstat2_nv_metatype_t; /** * @brief Metadata flags for Name/value pairs - 32 max. */ typedef enum kstat2_nv_metaflag { KSTAT2_NVMF_NONE = 0x00, /**< No metaflags are set */ KSTAT2_NVMF_FRACT = 0x01, /**< Units is a divisor not a multiplier */ KSTAT2_NVMF_IMMUT = 0x02, /**< Value is immutable */ KSTAT2_NVMF_STABLE = 0x04, /**< Kval is stable across Solaris releases */ KSTAT2_NVMF_LIMIT = 0x08 /**< Value is a limit or limits */ } kstat2_nv_metaflag_t; /** * @brief Histogram types. */ typedef enum kstat2_nv_hist_type { KSTAT2_NVHIST_LINEAR = 0, /**< Linear range of buckets */ KSTAT2_NVHIST_LOG10 = 1, /**< Log10 ranging buckets */ KSTAT2_NVHIST_LOG2 = 2, /**< Log2 ranging buckets */ KSTAT2_NVHIST_LOG10_LIN = 3 /**< Log10-linear ranging buckets */ } kstat2_nv_hist_type_t; /** * @brief Optional kstat enabled states. */ typedef enum kstat2_opt_estate { KSTAT2_OPT_ESTATE_UNKNOWN = 0x00, KSTAT2_OPT_ESTATE_DISABLED = 0x01, KSTAT2_OPT_ESTATE_ENABLED = 0x02, KSTAT2_OPT_ESTATE_ERROR = 0x04, KSTAT2_OPT_ESTATE_ALL = 0xFF, /**< Mask for all enabled states */ KSTAT2_OPT_ESTATE_DEFAULT = 0x100 /**< Default state flag */ } kstat2_opt_estate_t; #ifdef __cplusplus } #endif #endif /* _SYS_KSTAT2_COMMON_H */