package system
import "github.com/opencontainers/runc/libcontainer/system"
Index ¶
Types ¶
type Stat_t ¶
type Stat_t struct { // Name is the command run by the process. Name string // State is the state of the process. State State // StartTime is the number of clock ticks after system boot (since // Linux 2.6). StartTime uint64 }
Stat_t represents the information from /proc/[pid]/stat, as described in proc(5) with names based on the /proc/[pid]/status fields.
func Stat ¶
Stat returns a Stat_t instance for the specified process.
type State ¶
type State rune
State is the status of a process.
const ( Dead State = 'X' DiskSleep State = 'D' Running State = 'R' Sleeping State = 'S' Stopped State = 'T' TracingStop State = 't' Zombie State = 'Z' Parked State = 'P' Idle State = 'I' )
func (State) String ¶
String forms of the state from proc(5)'s documentation for /proc/[pid]/status' "State" field.
Source Files ¶
- Version
- v1.2.6 (latest)
- Published
- Mar 14, 2025
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 5 days ago –
Tools for package owners.