Package oshi.driver.unix.solaris
Class PsInfo
java.lang.Object
oshi.driver.unix.solaris.PsInfo
Utility to query /proc/psinfo
- 
Method SummaryModifier and TypeMethodDescriptionqueryArgsEnv(int pid, SolarisLibc.SolarisPsInfo psinfo) Read the argument and environment strings from process address spacequeryArgsEnvAddrs(int pid, SolarisLibc.SolarisPsInfo psinfo) Reads the pr_argc, pr_argv, pr_envp, and pr_dmodel fields from /proc/pid/psinfostatic SolarisLibc.SolarisLwpsInfoqueryLwpsInfo(int pid, int tid) Reads /proc/pid/lwp/tid/lwpsinfo and returns data in a structurestatic SolarisLibc.SolarisPrUsagequeryPrUsage(int pid) Reads /proc/pid/usage and returns data in a structurestatic SolarisLibc.SolarisPrUsagequeryPrUsage(int pid, int tid) Reads /proc/pid/lwp/tid/usage and returns data in a structurestatic SolarisLibc.SolarisPsInfoqueryPsInfo(int pid) Reads /proc/pid/psinfo and returns data in a structure
- 
Method Details- 
queryPsInfoReads /proc/pid/psinfo and returns data in a structure- Parameters:
- pid- The process ID
- Returns:
- A structure containing information for the requested process
 
- 
queryLwpsInfoReads /proc/pid/lwp/tid/lwpsinfo and returns data in a structure- Parameters:
- pid- The process ID
- tid- The thread ID (lwpid)
- Returns:
- A structure containing information for the requested thread
 
- 
queryPrUsageReads /proc/pid/usage and returns data in a structure- Parameters:
- pid- The process ID
- Returns:
- A structure containing information for the requested process
 
- 
queryPrUsageReads /proc/pid/lwp/tid/usage and returns data in a structure- Parameters:
- pid- The process ID
- tid- The thread ID (lwpid)
- Returns:
- A structure containing information for the requested thread
 
- 
queryArgsEnvAddrspublic static Quartet<Integer,Long, queryArgsEnvAddrsLong, Byte> (int pid, SolarisLibc.SolarisPsInfo psinfo) Reads the pr_argc, pr_argv, pr_envp, and pr_dmodel fields from /proc/pid/psinfo- Parameters:
- pid- The process ID
- psinfo- A populated- SolarisLibc.SolarisPsInfostructure containing the offset pointers for these fields
- Returns:
- A quartet containing the argc, argv, envp and dmodel values, or null if unable to read
 
- 
queryArgsEnvpublic static Pair<List<String>,Map<String, queryArgsEnvString>> (int pid, SolarisLibc.SolarisPsInfo psinfo) Read the argument and environment strings from process address space- Parameters:
- pid- the process id
- psinfo- A populated- SolarisLibc.SolarisPsInfostructure containing the offset pointers for these fields
- Returns:
- A pair containing a list of the arguments and a map of environment variables
 
 
-