Skip to content

papertigers/rust-kstat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kstat

Docs

This rust library provides an ffi wrapper around the native illumos library.

Example

The following is equivalent to kstat -p -n zone_vfs:

extern crate kstat;

use kstat::KstatReader;

fn main() {
    let reader = KstatReader::new(None, None, None, Some("zone_vfs"))
        .expect("failed to create kstat reader");
    let stats = reader.read().expect("failed to read kstats");
    println!("{:#?}", stats);
}

About

Rust kstat bindings for illumos based systems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages