HP-UX Reference (11i v3 07/02) - 2 System Calls (vol 5)

p
pstat(2) pstat(2)
size_t elemsize,
size_t
elemcount,
int
index
);
Description
pstat_getipc()
returns information about the System V IPC subsystem. There is one global instance
of this context. This data may change while the system is running due to administrative changes in the
associated kernel tunables. Up to a maximum of elemsize bytes of data is returned in the
pst_ipcinfo
structure pointed to by buf. The elemcount parameter must be
1. The index parameter must be 0.
PSTAT FUNCTION
Name
pstat_getlocality()
- get information for a locality
Description
See the pstat_getlocality(2) manpage for the synopsis and full description.
PSTAT FUNCTION
Name
pstat_getlv() - get information for a logical volume
Synopsis
#include <sys/pstat.h>
int pstat_getlv(
struct pst_lvinfo *
buf,
size_t
elemsize,
size_t
elemcount,
int
index
);
Description
pstat_getlv() returns information specific to a particular logical volume. There is one instance of this
context for each logical volume configured into the system. For each instance requested, up to a maximum
of elemsize bytes of data is returned in the pst_lvinfo structures pointed to by buf. The elemcount
parameter specifies the number of
pst_lvinfo structures that are available at buf to be filled in. The
index parameter specifies the starting index within the context of logical volumes. As a shortcut, informa-
tion for a single logical volume can be obtained by setting elemcount to
0 and setting index to the
dev_t of
that logical volume.
PSTAT FUNCTION
Name
pstat_getlwp() - get information for a thread or LWP in a process
Synopsis
#include <sys/pstat.h>
int pstat_getlwp(
struct lwp_status *
buf,
size_t
elemsize,
size_t
elemcount,
int
index,
pid_t
pid
);
Description
pstat_getlwp() returns information specific to a particular thread or LWP (Lightweight Process) in a
process. There is one instance of this context for each LWP in a process on the system. For each instance
requested, up to a maximum of elemsize bytes of data is returned in the lwp_status structure pointed to
by buf. The elemcount parameter specifies the number of lwp_status structures that are available at
buf to be filled in. The index parameter specifies the starting index within the context of LWPs in a pro-
cess.
HP-UX 11i Version 3: February 2007 7 Hewlett-Packard Company 297