PSTAT Interfaces

34
int64_t lwp_fss; /* fair share scheduler group ID */
int64_t lwp_bind_flags; /* processor/ldom binding flag */
int64_t lwp_bind_spu; /* processor bound to */
int64_t lwp_bind_ldom; /* ldom bound to */
int64_t lwp_reserved1; /* reserved - do not use */
int64_t lwp_reserved2; /* reserved - do not use */
int64_t lwp_reserved3; /* reserved - do not use */
pst_mpathnode
Header file: <sys/pstat/rpath_pstat_body.h>
_T_ULONG_T psr_idx; /*
* Current index of the entry on the chain of DNLC
* entries. Index for further pstat_getmpathname
* calls.
*/
struct __psfileid psr_file; /* ID of the file this entry describes */
struct __psfileid psr_parent; /* ID of the parent of this file */
char psr_name[PS_SEGMENTNAME_SZ]; /* NULL terminated name of entry */
The segment name size is: PS_SEGMENTNAME_SZ à 64
pst_msginfo
This structure describes per System V message queue information. Header file:
<sys/pstat/ipc_pstat_body.h>
_T_ULONG_T psm_idx; /* Idx for further pstat() requests */
_T_LONG_T psm_uid; /* UID of msg queue owner */
_T_LONG_T psm_gid; /* GID of msg queue owner */
_T_LONG_T psm_cuid; /* UID of msg queue creator */
_T_LONG_T psm_cgid; /* GID of msg queue creator */
_T_ULONG_T psm_mode; /* mode of msg queue (9 bits) */
_T_ULONG_T psm_seq; /* sequence number of msg queue */
_T_ULONG_T psm_key; /* IPC key of msg queue */
_T_ULONG_T psm_qnum; /* number of msgs on this queue */
_T_ULONG_T psm_qbytes; /* max bytes for msgs on this queue */
_T_ULONG_T psm_cbytes; /* cur bytes for msgs on this queue */
_T_LONG_T psm_lspid; /* PID of last msgsnd()er */
_T_LONG_T psm_lrpid; /* PID of last msgrcv()er */
_T_LONG_T psm_stime; /* last msgsnd() time (since 1970) */
_T_LONG_T psm_rtime; /* last msgrcv() time (since 1970) */
_T_LONG_T psm_ctime; /* last change time (since 1970) */
_T_ULONG_T psm_flags; /* flags for the message queue */
Definitions of flag bits in psm_flags:
PS_MSG_ALLOC à 0x1 /* message queue is in use */
PS_MSG_RWAIT à 0x2 /* one or more processes waiting to read */
PS_MSG_WWAIT à 0x4 /* one or more processes waiting to write */
pst_node
This structure describes SCA (ccNUMA) node information. It is only available as 64-bit data
(_PSTAT64 defined). Header file: <sys/pstat/node_pstat_body.h>