Defines the amount of free paging space available.
#include <signal.h> #include <sys/vminfo.h>
blkcnt_t psdanger (Signal)
int Signal;
The psdanger subroutine returns the difference between the current number of free paging-space blocks and the paging-space thresholds of the system.
Signal | Defines the signal. |
If the value of the Signal parameter is 0, the return value is the total number of paging-space blocks defined in the system.
If the value of the Signal parameter is -1, the return value is the number of free paging-space blocks available in the system.
If the value of the Signal parameter is SIGDANGER, the return value is the difference between the current number of free paging-space blocks and the paging-space warning threshold. If the number of free paging-space blocks is less than the paging-space warning threshold, the return value is negative.
If the value of the Signal parameter is SIGKILL, the return value is the difference between the current number of free paging-space blocks and the paging-space kill threshold. If the number of free paging-space blocks is less than the paging-space kill threshold, the return value is negative.
The swapoff subroutine, swapon subroutine, swapqry subroutine.
The chps command, lsps command, mkps command, rmps command, swapoff command, swapon command.
Paging Space Overview in AIX 5L Version 5.2 System Management Concepts: Operating System and Devices.
Subroutines Overview and Understanding Paging Space Programming Requirements in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.