Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Thursday, June 13, 2019
 
 

libkstat(3LIB)

Name

libkstat - kernel statistics library

Synopsis

cc [ flag... ] file... –lkstat [ library... ]
#include <kstat.h>

Description

Functions in this library provide a general-purpose mechanism for providing kernel statistics to users.

INTERFACES

The shared object libkstat.so.1 provides the public interfaces defined below. See intro(3) for additional information on shared object interfaces.

kstat_chain_update
kstat_close
kstat_data_lookup
kstat_lookup
kstat_open
kstat_read
kstat_write

Files

/lib/libkstat.so.1

shared object

/lib/64/libkstat.so.1

64-bit shared object

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/library
Interface Stability
Obsolete
MT-Level
See below

The kstat_open() function is safe. The remaining kstat functions are MT-Safe with the exception that only one thread may actively use a kstat_ctl_t * value at any time. Synchronization is left to the application.

See Also

pvs(1), kstat(3KSTAT), intro(3), attributes(7), kstat2(3KSTAT2), libkstat2(3LIB)

Notes

The functions in this library are deprecated. The libkstat function may be removed in a future release of Oracle Solaris. Use the libkstat2() function instead. For more information, see the libkstat2(3LIB) man page.