Skip to main content

peek_proc_reader/
lib.rs

1//! Low-level parsing of `/proc/<PID>/*` and sysfs.
2//!
3//! Reads fd, environ, cgroup, limits, and related files into raw structs.
4//! Does not depend on peek-core; used by peek-core and peekd.
5//!
6//! All public APIs return typed [ProcReaderError] so consumers can match on
7//! [ProcReaderError::NotFound], [ProcReaderError::Io], or [ProcReaderError::Parse].
8
9pub mod cgroup;
10pub mod current;
11pub mod environ;
12pub mod error;
13pub mod fd;
14pub mod limits;
15pub mod security;
16
17pub use error::{ProcReaderError, Result};