HP-UX Reference (11i v2 03/08) - 2 System Calls (vol 5)
p
pstat(2) pstat(2)
);
int pstat_getstatic(
struct pst_static *buf, size_t elemsize, size_t elemcount,
int index
);
int pstat_getstream(
struct pst_stream *buf, size_t elemsize, size_t elemcount,
int moduleskip, struct pst_fid *fid
);
int pstat_getswap(
struct pst_swapinfo *buf, size_t elemsize, size_t elemcount,
int index
);
int pstat_getvminfo(
struct pst_vminfo *buf, size_t elemsize, size_t elemcount,
int index
);
Remarks
The underlying function pstat() is provided for backward compatibility. Use of the
pstat_get*()
wrapper functions is recommended (for example, pstat_getproc()
) to avoid the polymorphic typing
of the
union pstun parameter.
The functions
pstat_getlocality()
and pstat_getproclocality() have their own man-
pages. See pstat_getlocality(2) and pstat_getproclocality(2).
DESCRIPTION
The
pstat functions return information about various system contexts. The contents of the various asso-
ciated data structures, structs pst_crashdev, pst_crashinfo
, pst_diskinfo, pst_dynamic,
pst_fileinfo, pst_fileinfo2, pst_filedetails
, pst_ipcinfo, pst_lvinfo,
pst_mpathnode, pst_msginfo,
pst_node, pst_pmqinfo, pst_processor, pst_pseminfo,
pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static, pst_status,
pst_socket, pst_stream, pst_swapinfo, pst_vminfo, and pst_vm_status
, are declared in
the header files
<sys/pstat.h>
, and <sys/pstat/*_pstat_body.h>. The headers contain
descriptions of the fields of each of the context data structures.
Summary of Available Contexts
The
pstat routines support the following contexts of information. Detailed descriptions of each routine
follow.
Short
Context Struct Routine Instances Cut
Static pst_static pstat_getstatic() 1
Dynamic pst_dynamic pstat_getdynamic() 1
VM pst_vminfo pstat_getvminfo() 1
IPC pst_ipcinfo pstat_getipc() 1
Stable Store pst_stable pstat_getstable() 1
Crash Dumps pst_crashinfo pstat_getcrashinfo() 1
Processor pst_processor pstat_getprocessor() 1 per processor
Disk pst_diskinfo pstat_getdisk() 1 per disk
Swap pst_swapinfo pstat_getswap() 1 per swap area
Dump Areas pst_crashdev pstat_getcrashdev() 1 per dump area
Node pst_node pstat_getnode() 1 per node
Locality pst_locality pstat_getlocality() 1 per locality
HP-UX 11i Version 2: August 2003 − 3 − Hewlett-Packard Company Section 2−−237