[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Base Operating System and Extensions Technical Reference, Volume 1

psdanger Subroutine

Purpose

Defines the amount of free paging space available.

Syntax

#include <signal.h>
int psdanger (Signal)
int Signal;

Description

The psdanger subroutine returns the difference between the current number of free paging-space blocks and the paging-space thresholds of the system.

Parameters

Signal Defines the signal.

Return Values

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.

Implementation Specifics

This subroutine is part of Base Operating System (BOS) Runtime.

Related Information

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.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]