Defines the amount of free paging space available.
#include <signal.h>
int 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.
This subroutine is part of Base Operating System (BOS) Runtime.
The swapon subroutine, swapqry subroutine.
The chps command, lsps command, mkps command, rmps command, swapon command.
Paging Space Overview in AIX Version 4.3 System Management Guide: Operating System and Devices.
Subroutines Overview and Understanding Paging Space Programming Requirements in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.