PSTAT Interfaces

40
uint32_t pst_pstate; /* protocol state */
_T_ULONG_T pst_boundaddr_len; /* Length of pst_boundaddr */
_T_ULONG_T pst_remaddr_len; /* Length of pst_remaddr */
char pst_boundaddr[PS_ADDR_SZ]; /* local addr/port, etc */
char pst_remaddr[PS_ADDR_SZ]; /* peer addr/port, etc */
The members pst_boundaddr and pst_remaddr contain data of the form struct sockaddr,
sockaddr_un, sockaddr_in, sockaddr_in6, etc. depending on the socket family. In case of
AF_UNIX sockets, pst_peer_hi_nodeid and pst_peer_lo_nodeid fields can be used to find the peer
socket by matching them with pst_hi_nodeid and pst_lo_nodeid of the other sockets.
PS_ADDR_SZ à 256
pst_stable
This structure describes the information in any system's stable storage area. Header file:
<sys/pstat/mdep_pstat_body.h>
_T_LONG_T pss_size; /* Number of bytes of stable store */
_T_LONG_T pss_type; /* Type of stable store */
_T_LONG_T pss_pad[8]; /* Reserved */
union {
unsigned char Pss_PA_RISC_buffer[PST_MAX_PA_RISC_STABLE];
/* Uninterpreted stable store data */
struct pst_stable_PA_RISC Pss_PA_RISC_stable;
/* PA-RISC stable store data */
} pss_un;
For more information, refer to mdep_pstat_body.h file.
Values for pss_type: PS_PA_RISC à 0x1 /* PA-RISC stable store */
Max bytes in a PA-RISC stable store area: PST_MAX_PA_RISC_STABLE à 256
pst_static
This structure contains static system information -- data that will remain the same (at least) until
reboot. Header file: <sys/pstat/global_pstat_body.h>
_T_LONG_T max_proc; /* Number of process table entries */
struct __psdev console_device; /* console major & minor number */
_T_LONG_T boot_time;
_T_LONG_T physical_memory; /* system physical memory in 4K pages */
_T_LONG_T page_size; /* bytes/page */
_T_LONG_T cpu_states; /* Number of CPU states */
_T_LONG_T pst_status_size; /* Size of data structure pst_status */
_T_LONG_T pst_static_size;
_T_LONG_T pst_dynamic_size;
_T_LONG_T pst_vminfo_size;
_T_LONG_T command_length; /* length for cached command line */
_T_LONG_T pst_processor_size; /* size of data structure pst_processor*/
_T_LONG_T pst_diskinfo_size;
_T_LONG_T pst_lvinfo_size;
_T_LONG_T pst_swapinfo_size;
_T_LONG_T pst_maxmem; /* actual max memory per process */
_T_LONG_T pst_lotsfree; /* Vhand tunables. max free before clock