pstat.2 (2010 09)

p
pstat(2) pstat(2)
PSTAT FUNCTION
Name
pstat_getpset()
- get information for a processor set
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 parame-
ter specifies the starting index within the context of processor sets. As a shortcut, information for a single
processor 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
12 Hewlett-Packard Company 12 HP-UX 11i Version 3: September 2010