procpath

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Rendered for darwin/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PPID

func PPID(pid int) (int, error)

PPID returns the parent pid for pid using proc_pidinfo(PROC_PIDTBSDINFO).

func Path

func Path(pid int) (string, error)

Path returns the executable path for pid using proc_pidpath(3).

Types

type Node

type Node struct {
	PID  int
	PPID int
	Path string
}

Node is a lightweight process identity used for ancestry walks.

func Lookup

func Lookup(pid int) (Node, bool)

Lookup returns process metadata for pid when the process is still running.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL