| Modifier and Type | Class and Description |
|---|---|
| public static class | LibKstat.Kstat
The kernel maintains a linked list of statistics structures, or kstats. |
| public static class | LibKstat.KstatCtl
A kstat control structure. |
| public static class | LibKstat.KstatIntr
Interrupt statistics. |
| public static class | LibKstat.KstatIO
IO Statistics. |
| public static class | LibKstat.KstatNamed
A list of arbitrary name=value statistics. |
| public static class | LibKstat.KstatTimer
Event timer statistics. |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final LibKstat | |
| 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 byte | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| public static final byte |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the new KCID if the kstat chain has changed, 0 if it hasn't, or -1 on failure.a kstat control structure kcThe kstat_chain_update() function brings the user's kstat header chain in sync with that of the kernel. |
| public int | Returns: 0 on success and -1 on failure.a kstat control structure kcThe kstat_close() function frees all resources that were associated with kc. |
| public Pointer | Returns: a pointer to the requested data record if it is found. If the requested record is not found, or if the kstat type is invalid, returns NULL.The kstat to search ksp,The key for the name-value pair, or name of the timer as
applicable name)The kstat_data_lookup() function searches the kstat's data section for the record with the specified name . |
| public LibKstat. | Returns: a pointer to the requested kstat if it is found, or NULL if it is not.The kstat control structure kc,The kstat module to search ks_module, int The kstat instance number ks_instance, String The kstat name to search ks_name)The kstat_lookup() function traverses the kstat chain, kc.kc_chain, searching for a kstat with the same ks_module, ks_instance, and ks_name fields; this triplet uniquely identifies a kstat. |
| public LibKstat. | Returns: A pointer to this structure, which must be supplied as the kc argument in subsequent libkstat function calls.The kstat_open() function initializes a kstat control structure, which provides access to the kernel statistics library. |
| public int | Returns: On success, return the current kstat chain ID (KCID). On failure, return -1.The kstat control structure kc,The kstat from which to retrieve data ksp,If buf is non-NULL , the data is copied from ksp.ks_data into
buf. p)kstat_read() gets data from the kernel for the kstat pointed to by ksp. |
| public int | Returns: On success, return the current kstat chain ID (KCID). On failure, return -1.The kstat control structure kc,The kstat on which to set data ksp,If buf is non-NULL, the data is copied from buf into
ksp.ks_data. buf)kstat_write() writes data from buf, or from ksp.ks_data if buf is NULL, to the corresponding kstat in the kernel. |