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

p
pstat(2) pstat(2)
Synopsis
#include <sys/pstat.h>
int pstat_getpset(
struct pst_pset *
buf,
size_t
elemsize,
size_t
elemcount,
int
index
);
Description
pstat_getpset()
returns information specific to a particular processor set. There is one instance of
this context for each processor set on the system. For each instance requested, up to a maximum of elem-
size bytes of data is returned in the
pst_pset structure pointed by buf. The elemcount parameter
specifies the number of
pst_pset structures that are available at buf to be filled in. The index parameter
specifies the starting index within the context of processor sets. As a shortcut, information for a single pro-
cessor set can be obtained by setting elemcount to
0 and setting index to the pset ID of that processor set.
PSTAT FUNCTION
Name
pstat_getsem() - get information for a System V semaphore set
Synopsis
#include <sys/pstat.h>
int pstat_getsem(
struct pst_seminfo *
buf,
size_t
elemsize,
size_t
elemcount,
int
index
);
Description
pstat_getsem() returns information specific to a particular System V semaphore set. There is one
instance of this context for each System V semaphore set on the system. For each instance requested, up to
a maximum of elemsize bytes of data is returned in the pst_seminfo structures pointed to by buf. The
elemcount parameter specifies the number of
pst_seminfo structures that are available at buf to be
filled in. The index parameter specifies the starting index within the context of System V semaphore sets.
As a shortcut, information for a single semaphore set can be obtained by setting elemcount to
0 and setting
index to the
semid of that semaphore set.
PSTAT FUNCTION
Name
pstat_getshm() - get information for a System V shared memory segment
Synopsis
#include <sys/pstat.h>
int pstat_getshm(
struct pst_shminfo *
buf,
size_t
elemsize,
size_t
elemcount,
int
index
);
Description
pstat_getshm() returns information specific to a particular System V shared memory segment. There
is one instance of this context for each System V shared memory segment on the system. For each instance
requested, up to a maximum of elemsize bytes of data is returned in the pst_shminfo structures pointed
to by buf. The elemcount parameter specifies the number of pst_shminfo structures that are available
at buf to be filled in. The index parameter specifies the starting index within the context of System V
shared memory segments. As a shortcut, information for a single shared memory segment can be obtained
by setting elemcount to 0 and setting index to the shmid of that shared memory segment.
302 Hewlett-Packard Company 12 HP-UX 11i Version 3: February 2007