This crate provides a safe interface for reading and writing information to the kernel using the sysctl interface.
FreeBSD and macOS are supported.
Contributions for improvements and other platforms are welcome.
Documentation
Documentation is available here: https://johalun.github.io/sysctl-rs/
or, to generate documentation locally do:
&&
Usage
Add to Cargo.toml
[]
= "0.1.4"
Example
sysctl comes with several examples, see the examples folder.
Run with:
Or in a separate crate:
extern crate sysctl;