HP-UX Reference (11i v2 07/12) - 2 System Calls (vol 5)
p
pstat(2) pstat(2)
Short
Context Struct Routine Instances Cut
Commandline char * pstat_ 1 per process yes
getcommandline()
Process pst_status pstat_getproc() 1 per process yes
LW Process lwp_status pstat_getlwp() 1 per lwp/thread yes
Process VM pst_vm_status pstat_getprocvm() 1 per process region yes
Process pst_proc_ pstat_ 1 per process loc. yes
Locality locality getproclocality()
LVM Vol pst_lvinfo pstat_getlv() 1 per lvol yes
Sema Set pst_seminfo pstat_getsem() 1 per sem set yes
Msg Queue pst_msginfo pstat_getmsg() 1 per msg queue yes
Shared Mem pst_shminfo pstat_getshm() 1 per shm seg yes
Proc Set pst_pset pstat_getpset() 1 per proc set yes
P-Sema Set pst_pseminfo pstat_getpsem() 1 per sema no
P-Msg Queue pst_pmqinfo pstat_getpmq() 1 per msg queue no
Open File pst_fileinfo pstat_getfile() 1 per file yes
Open File pst_fileinfo2 pstat_getfile2() 1 per file yes
Open File pst_ pstat_ 1 per file/call
filedetails getfiledetails()
Open Socket pst_socket pstat_getsocket() 1 per socket/call
Open Stream pst_stream pstat_getstream() 1 per stream/call
Open File char * pstat_getpathname() 1 per file/call
DNLC pst_mpathnode pstat_getmpathname() 1 per DNLC entry
Wrapper Function Descriptions
pstat_getcommandline()
Returns the commandline of the process specified in the pid parameter. Up to a max-
imum of elemsize - 1 bytes are returned in the buffer buf, if the
elemsize is less
than or equal to the size of the process commandline. If the
elemsize is greater than the
size of process commandline, only the available number of bytes are returned. Up to a
maximum of 1020 characters of the process commandline is stored. The elemcount
parameter has to be one.
pstat_getcrashdev()
Returns information specific to a particular crash dump device. There is one instance of
this context for each crash dump device configured on the system. For each instance
requested, data, up to a maximum of elemsize bytes, is returned in the structs
pst_crashdev pointed to by buf. The elemcount parameter specifies the number of
structs pst_crashdev that are available at buf to be filled in. The index parame-
ter specifies the starting index within the context of crash dump devices.
pstat_getcrashinfo()
Returns information about the system’s crash dump configuration. Data, up to a maximum
of
elemsize bytes, are returned in the struct pst_crashinfo
pointed to by buf.
The
elemcount parameter must be 1. The index parameter must be 0.
pstat_getdisk()
Returns information specific to a particular disk. There is one instance of this context for
each disk configured into the system. For each instance requested, data, up to a maximum
of
elemsize bytes, is returned in the structs pst_diskinfo pointed to by buf.
The elemcount parameter specifies the number of structs pst_diskinfo that are
available at buf to be filled in. The index parameter specifies the starting index within
the context of disks.
pstat_getdynamic()
Returns dynamic information about the system. There is one global instance of this con-
text. Data, up to a maximum of elemsize bytes, is returned in the struct
pst_dynamic
pointed to by buf. The elemcount parameter must be 1. The index
parameter must be 0.
pstat_getfile()
This call is now obsolete and is provided for backward compatibility only. Use of
pstat_getfile2() call is recommended. Returns information specific to a particular
HP-UX 11i Version 2: December 2007 Update − 4 − Hewlett-Packard Company 277