type Proc … type Procs … var ErrFileParse … var ErrFileRead … var ErrMountPoint … func (p Procs) Len() int { … } func (p Procs) Swap(i, j int) { … } func (p Procs) Less(i, j int) bool { … } // Self returns a process for the current process read via /proc/self. func Self() (Proc, error) { … } // NewProc returns a process for the given pid under /proc. func NewProc(pid int) (Proc, error) { … } // AllProcs returns a list of all currently available processes under /proc. func AllProcs() (Procs, error) { … } // Self returns a process for the current process. func (fs FS) Self() (Proc, error) { … } // NewProc returns a process for the given pid. // // Deprecated: Use fs.Proc() instead. func (fs FS) NewProc(pid int) (Proc, error) { … } // Proc returns a process for the given pid. func (fs FS) Proc(pid int) (Proc, error) { … } // AllProcs returns a list of all currently available processes. func (fs FS) AllProcs() (Procs, error) { … } // CmdLine returns the command line of a process. func (p Proc) CmdLine() ([]string, error) { … } // Wchan returns the wchan (wait channel) of a process. func (p Proc) Wchan() (string, error) { … } // Comm returns the command name of a process. func (p Proc) Comm() (string, error) { … } // Executable returns the absolute path of the executable command of a process. func (p Proc) Executable() (string, error) { … } // Cwd returns the absolute path to the current working directory of the process. func (p Proc) Cwd() (string, error) { … } // RootDir returns the absolute path to the process's root directory (as set by chroot). func (p Proc) RootDir() (string, error) { … } // FileDescriptors returns the currently open file descriptors of a process. func (p Proc) FileDescriptors() ([]uintptr, error) { … } // FileDescriptorTargets returns the targets of all file descriptors of a process. // If a file descriptor is not a symlink to a file (like a socket), that value will be the empty string. func (p Proc) FileDescriptorTargets() ([]string, error) { … } // FileDescriptorsLen returns the number of currently open file descriptors of // a process. func (p Proc) FileDescriptorsLen() (int, error) { … } // MountStats retrieves statistics and configuration for mount points in a // process's namespace. func (p Proc) MountStats() ([]*Mount, error) { … } // MountInfo retrieves mount information for mount points in a // process's namespace. // It supplies information missing in `/proc/self/mounts` and // fixes various other problems with that file too. func (p Proc) MountInfo() ([]*MountInfo, error) { … } func (p Proc) fileDescriptors() ([]string, error) { … } func (p Proc) path(pa ...string) string { … } // FileDescriptorsInfo retrieves information about all file descriptors of // the process. func (p Proc) FileDescriptorsInfo() (ProcFDInfos, error) { … } // Schedstat returns task scheduling information for the process. func (p Proc) Schedstat() (ProcSchedstat, error) { … }