Package oshi.driver.unix.solaris
Class PsInfo
java.lang.Object
oshi.driver.unix.solaris.PsInfo
Utility to query /proc/psinfo
-
Method Summary
Modifier and TypeMethodDescriptionqueryArgsEnv(int pid)
Read the argument and environment strings from process address spacequeryArgsEnvAddrs(int pid)
Reads the pr_argc, pr_argv, pr_envp, and pr_dmodel fields from /proc/pid/psinfo
-
Method Details
-
queryArgsEnvAddrs
Reads the pr_argc, pr_argv, pr_envp, and pr_dmodel fields from /proc/pid/psinfo- Parameters:
pid
- The process ID- Returns:
- A quartet containing the argc, argv, envp and dmodel values, or null if unable to read
-
queryArgsEnv
Read the argument and environment strings from process address space- Parameters:
pid
- the process id- Returns:
- A pair containing a list of the arguments and a map of environment variables
-