systeroid-core 0.3.2

Core library of systeroid
Documentation
/// Sysctl wrapper.
pub mod controller;

/// Sysctl section.
pub mod section;

/// Sysctl display/output options.
pub mod r#type;

/// Kernel parameter.
pub mod parameter;

/// Path of the kernel parameters.
pub(crate) const PROC_PATH: &str = "/proc/sys/";

/// Default configuration file to preload values from.
pub const DEFAULT_PRELOAD: &str = "/etc/sysctl.conf";

/// Default system configuration files to preload values from.
pub const SYSTEM_PRELOAD: &[&str] = &[
    "/etc/sysctl.d",
    "/run/sysctl.d",
    "/usr/local/lib/sysctl.d",
    "/usr/lib/sysctl.d",
    "/lib/sysctl.d",
    DEFAULT_PRELOAD,
];

/// Deprecated parameters to skip while listing.
/// <https://bugzilla.redhat.com/show_bug.cgi?id=152435>
pub const DEPRECATED_PARAMS: &[&str] = &["base_reachable_time", "retrans_time"];

/// Environment variable for setting the path of the Linux kernel documentation.
pub const KERNEL_DOCS_ENV: &str = "KERNEL_DOCS";

/// Environment variable for disabling the cache.
pub(crate) const DISABLE_CACHE_ENV: &str = "NO_CACHE";

/// Label for caching the kernel parameters.
pub(crate) const PARAMETERS_CACHE_LABEL: &str = "parameters";