Expand description
This crate provides to an interface into the linux procfs
filesystem, usually mounted at
/proc
.
This is a pseudo-filesystem which is available on most every linux system and provides an interface to kernel data structures.
§procfs-core
The procfs-core
crate is a fully platform-independent crate that contains most of the data-structures and
parsing code. Most people should first look at the procfs
crate instead.
Re-exports§
pub use sys::kernel::Version as KernelVersion;
Modules§
- Functions related to the in-kernel key management and retention facility
- Information about the networking layer.
- Extension traits useful for importing wholesale.
- Functions and structs related to process information
- Sysctl is a means of configuring certain aspects of the kernel at run-time, and the
/proc/sys/
directory is there so that you don’t even need special tools to do it!
Structs§
- A block device entry under
/proc/devices
- Container group controller information.
- Container group controller information.
- A charcter device entry under
/proc/devices
- Represents the data from
/proc/cpuinfo
. - CPU pressure information
- The amount of time, measured in ticks, the CPU has been in specific states
- Format of a crypto implementation represented in /proc/crypto.
- Represents the data from
/proc/crypto
. - Device entries under
/proc/devices
- Disk IO stat information
- A list of disk stats.
- A convenience stuct implementing SystemInfoInterface with explicitly-specified values.
- An internal error in the procfs crate
- IO pressure information
- A list of the arguments passed to the Linux kernel at boot time.
- The kernel configuration.
- Details about a loaded kernel module
- A set of loaded kernel modules
- Kernel/system statistics, from
/proc/stat
- Load average figures.
- Details about an individual file lock
- Details about file locks
- This struct reports statistics about memory usage on the system, based on the
/proc/meminfo
file. - Memory pressure information
- A mountpoint entry under
/proc/mounts
- A partition entry under
/proc/partitions
- Represents the fields and flags in a page table entry for a memory page.
- Pressure stall information for either CPU, memory, or IO.
- Information about a process cgroup
- Information about process cgroups.
- A set of shared memory segments parsed from
/proc/sysvipc/shm
- A shared memory segment parsed from
/proc/sysvipc/shm
Relation with crate::process::MMapPath::Vsys - The uptime of the system, based on the
/proc/uptime
file. - Various virtual memory statistics
Enums§
- Possible values for a kernel config option
- The kind of a lock (read or write)
- The mode of a lock (advisory or mandatory)
- The type of a file lock
- The various error conditions in the procfs crate.
- Potential results for selftest.
- Enumeration of potential types and their associated data. Unknown at end to catch unrecognised types.
Traits§
- Types which can be parsed from a BufRead implementation.
- Types which can be parsed from a BufRead implementation and system info.
- Types which can be parsed from a Read implementation.
- Types which can be parsed from a Read implementation and system info.
- Extensions for dealing with ProcErrors.
- Auxiliary system information interface.
- Values which can provide an output given the SystemInfo.
Type Aliases§
- The main error type for the procfs crate.
- Auxiliary system information.