Kstat2 is available in Solaris 11.4 and later.
| Modifier and Type | Class and Description |
|---|---|
| public static class | Kstat2.Kstat2Handle
Opaque kstat handle. |
| public static class | Kstat2.Kstat2Map
Opaque kstat map handle. |
| public static class | Kstat2.Kstat2MatcherList
Opaque kstat match list. |
| public static class | Kstat2.Kstat2NV
Immutable Name/Value pair. |
| Modifier and Type | Field and Description |
|---|---|
| public static final Kstat2 | INSTANCE
Requires Solaris 11.4. |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final short | |
| public static final short | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: Upon successful completion, returns a int value ofKstat2#KSTAT2_S_OK. If an error occurs a value other than
KSTAT2_S_OK is returned.The type of matcher, from the type, String kstat2_match_type_t
enumeration.The string to match. match, Kstat2.The list to which to append the matcher. matchersAdds matchers to the provided matcher list. |
| public int | Returns: Upon successful completion, returns a int value ofKstat2#KSTAT2_S_OK. If an error occurs a value other than
KSTAT2_S_OK is returned.Receives a pointer to the allocated matcher list. matchers)Allocates a new matcher list to allow matchers to be provided to the
|
| public int | Returns: Upon successful completion, returns a int value ofKstat2#KSTAT2_S_OK. If an error occurs a value other than
KSTAT2_S_OK is returned.A reference to the handle to close. handle)The kstat2_close() function frees all resources that are associated with the handle. |
| public int | Returns: Upon successful completion, returns a int value ofKstat2#KSTAT2_S_OK. If an error occurs a value other than
KSTAT2_S_OK is returned.A pointer to the matchers)Kstat2MatcherList to be freed.Frees the resources associated with the matcher list. |
| public int | Returns: Upon successful completion, the function will set the map parameter to reference the relevant map andKstat2#KSTAT2_S_OK will be
returned. If the requested item cannot be found, the map reference
will be set to NULL and an error will be returned.The handle to obtain the map from. handle,The string to match. uri, PointerByReference Receives a reference to the relevant map. map)Obtains a reference to a kstat2 map given the URI of the map. |
| public int | Returns: Upon successful completion, returnsKstat2#KSTAT2_S_OK. If
there is an error performing the requested operation, an error code
will be returned.The map from which to retrieve the data. map,The uri of the data to retrieve. name, PointerByReference Receives a reference to the name/value data. nv)Retrieves the name/value (nv) pair identified by the supplied name. |
| public int | Returns: Upon successful completion, returns a int value ofKstat2#KSTAT2_S_OK. If an error occurs a value other than
KSTAT2_S_OK is returned.A pointer to the handle to be initialized. handle, Kstat2.Only kstats that match one or more of the provided matchers will
be available. If a NULL or empty matcher list is provided, all of
the system's kstats will be available, which is equivalent to
calling the kstat2_open() function. Restricting the number of
kstats available will improve performance and reduce the memory
footprint. matchersInitializes an opaque kstat2 handle that provides access to a specific view of the kernel statistics. |
| public String | Returns: A descriptive string for the supplied status code.A value in the status)kstat2_status enumeration.Gives a descriptive error message for the supplied status value. |
| public int | Returns: Upon successful completion, returns a int value ofKstat2#KSTAT2_S_OK. If an error occurs a value other than
KSTAT2_S_OK is returned.The handle to be updated. handleSynchronises the user's view with that of the kernel. |