Struct procinfo::pid::Stat [−][src]
Process status information.
See man 5 proc and Linux/fs/proc/array.c.
Fields
pid: pid_tProcess ID (i.e., Thread Group ID).
command: StringFilename of the executable.
state: StateCurrent state of the process.
ppid: pid_tProcess ID of parent process.
pgrp: pid_tProcess group ID of the process.
session: pid_tSession ID of the process.
tty_nr: pid_tThe controlling terminal of the process. (The minor device number is contained in the combination of bits 31 to 20 and 7 to 0; the major device number is in bits 15 to 8.)
tty_pgrp: pid_tProcess group ID of the controlling terminal of the process.
flags: u32The kernel flags word of the process. For bit meanings, see the PF_* defines in the Linux
kernel source file include/linux/sched.h. Details depend on the kernel version.
minflt: usizeThe number of minor faults the process has made which have not required loading a memory page from disk.
cminflt: usizeThe number of minor faults that the process’s waited-for children have made.
majflt: usizeThe number of major faults the process has made which have required loading a memory page from disk.
cmajflt: usizeThe number of major faults that the process’s waited-for children have made.
utime: clock_tAmount of time that this process has been scheduled in user mode, measured in clock ticks
(divide by sysconf(_SC_CLK_TCK)). This includes guest time, guest_time (time spent
running a virtual CPU, see below), so that applications that are not aware of the guest
time field do not lose that time from their calculations.
stime: clock_tAmount of time that this process has been scheduled in kernel mode, measured in clock ticks
(divide by sysconf(_SC_CLK_TCK)).
cutime: clock_tAmount of time that this process’s waited-for children have been scheduled in user mode,
measured in clock ticks (divide by sysconf(_SC_CLK_TCK)). (See also times(2).) This
includes guest time, cguest_time (time spent running a virtual CPU, see below).
cstime: clock_tAmount of time that this process’s waited-for children have been scheduled in kernel mode,
measured in clock ticks (divide by sysconf(_SC_CLK_TCK)).
priority: i32For processes running a real-time scheduling policy (policy below; see
sched_setscheduler(2)), this is the negated scheduling priority, minus one; that is, a
number in the range -2 to -100, corresponding to real-time priorities 1 to 99. For
processes running under a non-real-time scheduling policy, this is the raw nice value
(setpriority(2)) as represented in the kernel. The kernel stores nice values as numbers
in the range 0 (high) to 39 (low), corresponding to the user-visible nice range of -20 to
19.
nice: i32The nice value (see setpriority(2)), a value in the range 19 (low priority) to -20 (high
priority).
num_threads: i32Number of threads in this process (since Linux 2.6).
start_time: u64The time the process started after system boot, expressed in clock ticks (divide by
sysconf(_SC_CLK_TCK)).
vsize: usizeVirtual memory size in bytes.
rss: usizeResident Set Size: number of pages the process has in real memory. This is just the pages which count toward text, data, or stack space. This does not include pages which have not been demand-loaded in, or which are swapped out.
rsslim: usizeCurrent soft limit in bytes on the rss of the process; see the description of RLIMIT_RSS
in getrlimit(2).
start_code: usizeThe address above which program text can run.
end_code: usizeThe address below which program text can run.
startstack: usizeThe address of the start (i.e., bottom) of the stack.
kstkeep: usizeThe current value of ESP (stack pointer), as found in the kernel stack page for the process.
kstkeip: usizeThe current EIP (instruction pointer).
signal: usizeThe bitmap of pending signals. Obsolete, because it does not provide information on
real-time signals; use /proc/[pid]/status instead.
blocked: usizeThe bitmap of blocked signals. Obsolete, because it does not provide information on
real-time signals; use /proc/[pid]/status instead.
sigignore: usizeThe bitmap of ignored signals. Obsolete, because it does not provide information on
real-time signals; use /proc/[pid]/status instead.
sigcatch: usizeThe bitmap of caught signals. Obsolete, because it does not provide information on real-time signals; use /proc/[pid]/status instead.
wchan: usizeThis is the “channel” in which the process is waiting. It is the address of a location in
the kernel where the process is sleeping. The corresponding symbolic name can be found in
/proc/[pid]/wchan.
exit_signal: i32Signal to be sent to parent when we die.
processor: u32CPU number last executed on.
rt_priority: u32Real-time scheduling priority, a number in the range 1 to 99 for processes scheduled under
a real-time policy, or 0, for non-real-time processes (see sched_setscheduler(2)).
policy: u32Scheduling policy (see sched_setscheduler(2)). Decode using the SCHED_* constants in
linux/sched.h.
delayacct_blkio_ticks: u64Aggregated block I/O delays, measured in clock ticks (centiseconds). Since Linux 2.6.18.
guest_time: clock_tGuest time of the process (time spent running a virtual CPU for a guest operating system),
measured in clock ticks (divide by sysconf(_SC_CLK_TCK)). Since Linux 2.6.24.
cguest_time: clock_tGuest time of the process’s children, measured in clock ticks (divide by
sysconf(_SC_CLK_TCK)). Since linux 2.6.24.
start_data: usizeAddress above which program initialized and uninitialized (BSS) data are placed. Since Linux 3.3.
end_data: usizeAddress below which program initialized and uninitialized (BSS) data are placed. Since Linux 3.3.
start_brk: usizeAddress above which program heap can be expanded with brk(2). Since Linux 3.3.
arg_start: usizeAddress above which program command-line arguments (argv) are placed. Since Linux 3.5.
arg_end: usizeAddress below program command-line arguments (argv) are placed. Since Linux 3.5.
env_start: usizeAddress above which program environment is placed. Since Linux 3.5.
env_end: usizeAddress below which program environment is placed. Since Linux 3.5.
exit_code: i32The thread’s exit status in the form reported by waitpid(2). Since Linux 3.5.
Trait Implementations
impl Debug for Stat[src]
impl Default for Stat[src]
impl Eq for Stat[src]
impl Hash for Stat[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<Stat> for Stat[src]
impl StructuralEq for Stat[src]
impl StructuralPartialEq for Stat[src]
Auto Trait Implementations
impl RefUnwindSafe for Stat
impl Send for Stat
impl Sync for Stat
impl Unpin for Stat
impl UnwindSafe for Stat
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,