PSTAT Interfaces
32
int32_t psfd_ftype; /* File type, PS_TYPE_VNODE etc. */
pst_subtype_t psfd_subtype; /* File sub type PS_SUBTYPE_CHARDEV etc. */
int32_t psfd_lckflag; /* Flags associated with file locking */
/*
* This is a vector that will indicate if a certain field in the structure is
* valid or not. User should check this field when EOVERFLOW is set.
*/
int32_t psfd_valid; /* PSFD_SIZE à 0x1 */
/* ID of device containing a directory entry for this file */
_T_LONG_T psfd_dev;
_T_LONG_T psfd_ino; /* file Inode number */
_T_ULONG_T psfd_mode; /* file type, attributes, and acl */
_T_LONG_T psfd_nlink; /* number of links to the file */
_T_LONG_T psfd_uid; /* user ID of file owner */
_T_LONG_T psfd_gid; /* group ID of file group */
_T_LONG_T psfd_rdev; /* device ID (char/block special files*/
_T_LONG_T psfd_size; /* file size in bytes */
_T_LONG_T psfd_atime; /* time of last access */
_T_LONG_T psfd_mtime; /* time of last data modification */
_T_LONG_T psfd_ctime; /* time of last file status change */
_T_LONG_T psfd_blksize; /* preferred I/O block size */
/* Number of File system specific blocks allocated to this file. */
_T_LONG_T psfd_blocks;
pst_ipcinfo
This structure describes the system-wide global System V IPC constants. These are typically
(currently) defined at boot time, but may become dynamic in future releases. Header file:
<sys/pstat/ipc_pstat_body.h>
_T_LONG_T psi_semmap; /* resource map size for SysV semaphores */
_T_LONG_T psi_semmni; /* number of identifiers for SysV semaphoe sets */
_T_LONG_T psi_semmns; /* system-wide total of SysV semapores */
_T_LONG_T psi_semmnu; /* system-wide total of SysV sema undo structs */
_T_LONG_T psi_semmsl; /* max # of semaphores per identifier */
_T_LONG_T psi_semopm; /* max # of operations per semop() call */
_T_LONG_T psi_semume; /* max # of undo entries per process */
_T_LONG_T psi_semusz; /* size in bytes of undo structure */
_T_LONG_T psi_semvmx; /* maximum value for semaphore */
_T_LONG_T psi_semaem; /* adjust-on-exit maximum value */
_T_LONG_T psi_msgmap; /* resource map size for SysV messages */
_T_LONG_T psi_msgmax; /* maximum message size */
_T_LONG_T psi_msgmnb; /* maximum bytes on message queue */
_T_LONG_T psi_msgmni; /* system-wide total of SysV msg queue IDs */
_T_LONG_T psi_msgssz; /* message segment size */
_T_LONG_T psi_msgtql; /* system-wide total of SysV msg headers */
_T_LONG_T psi_msgseg; /* system-wide total of SysV msg segments */
_T_LONG_T psi_shmmax; /* maximum shared memory segment size */
_T_LONG_T psi_shmmin; /* minimum shared memory segment size */
_T_LONG_T psi_shmmni; /* system-wide total of SysV shm identifiers */
_T_LONG_T psi_shmseg; /* max # of attached SysV shm segs per process */
int32_t psi_valid; /* valid vector. PSI_SHMMAX à 0x1 */
pst_lvinfo
This structure contains per-logical volume information. Each structure returned describes one
logical volume. Header file <sys/pstat/lv_pstat_body.h>