pstat.2 (2010 09)

p
pstat(2) pstat(2)
size_t elemcount ,
int pid
);
Description
pstat_getcommandline()
returns the command line of the process specified in the pid parameter.
Up to a maximum of elemsize
-1
bytes is returned in the buffer buf, if the elemsize is less than or equal to
the size of the process command line. If the elemsize is greater than the size of process command line,
only the available number of bytes are returned. Up to a maximum of 1020 characters of the process
command line is stored. The elemcount parameter must be
1.
PSTAT FUNCTION
Name
pstat_getcrashdev()
- get information for a crash dump device
Synopsis
#include <sys/pstat.h>
int pstat_getcrashdev(
struct pst_crashdev *buf,
size_t elemsize ,
size_t elemcount ,
int index
);
Description
pstat_getcrashdev()
returns information specific to a particular crash dump device. There is one
instance of this context for each crash dump device configured on the system. For each instance
requested, up to a maximum of elemsize bytes of data is returned in the
pst_crashdev structures
pointed to by buf . The elemcount parameter specifies the number of pst_crashdev structures that are
available at buf to be filled in. The index parameter specifies the starting index within the context of
crash dump devices.
PSTAT FUNCTION
Name
pstat_getcrashinfo()
- get information for a system’s crash dump configuration
Synopsis
#include <sys/pstat.h>
int pstat_getcrashinfo(
struct pst_crashinfo *buf
,
size_t
elemsize ,
size_t elemcount ,
int index
);
Description
pstat_getcrashinfo() returns information about the system’s crash dump configuration. Up to a
maximum of elemsize bytes of data is returned in the pst_crashinfo structure pointed to by buf. The
elemcount parameter must be 1. The index parameter must be 0.
PSTAT FUNCTION
Name
pstat_getdisk() - get information for a disk
Synopsis
#include <sys/pstat.h>
int pstat_getdisk(
struct pst_diskinfo *buf,
size_t elemsize ,
size_t elemcount ,
int index
4 Hewlett-Packard Company 4 HP-UX 11i Version 3: September 2010