pstat.2 (2010 09)

p
pstat(2) pstat(2)
);
Description
pstat_getdisk()
returns information specific to a particular disk. There is one instance of this con-
text for each disk opened in the system. Unused, closed disks may not have a context and the number of
contexts may not match the number of disks configured into the system. For each instance requested, up
to a maximum of elemsize bytes of data is returned in the
pst_diskinfo structures pointed to by buf .
The elemcount parameter specifies the number of
pst_diskinfo structures that are available at buf to
be filled in. The index parameter specifies the starting index within the context of disks. Some contexts
may persist after their disks have been closed. An application should use the field
psd_status in the
pst_diskinfo structure to tell if the disk is opened (1) or closed (0).
PSTAT FUNCTION
Name
pstat_getio()
- get information for an IO Object
Synopsis
#include <sys/pstat.h>
int pstat_getio(
struct pst_ioinfo *buf,
size_t elemsize ,
size_t elemcount ,
int index
);
Description
pstat_getio() returns information specific to a particular IO Object. IO objects include devices like
tape, changer and other objects like lunpath and HBAs. There is one instance of this context for each IO
object opened in the system. Unused, closed IO objects may not have a context and the number of con-
texts may not match the number of IO objects configured into the system. For each instance requested,
up to a maximum of elemsize bytes of data is returned in the pst_ioinfo structures pointed to by buf .
The elemcount parameter specifies the number of
pst_ioinfo structures that are available at buf to be
filled in. The index parameter specifies the starting index within the context of IO objects. Some contexts
may persist after their IO objects have been closed. An application should use the field
psi_status in
the
pst_ioinfo structure to tell if the IO object is opened (1) or closed (0).
PSTAT FUNCTION
Name
pstat_getdynamic()
- get dynamic information about the system
Synopsis
#include <sys/pstat.h>
int pstat_getdynamic(
struct pst_dynamic *buf,
size_t elemsize ,
size_t elemcount ,
int index
);
Description
pstat_getdynamic() returns dynamic information about the system. This data may change fre-
quently during the normal operation of the kernel. There is one global instance of this context. Up to a
maximum of elemsize bytes of data is returned in the pst_dynamic structure pointed to by buf . The
elemcount parameter must be 1. The index parameter must be 0.
PSTAT FUNCTION
Name
pstat_getfile2() - get information for an open file of a process
HP-UX 11i Version 3: September 2010 5 Hewlett-Packard Company 5