[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1


psdanger Subroutine

Purpose

Defines the amount of free paging space available.

Syntax

#include <signal.h>
#include <sys/vminfo.h>


blkcnt_t 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 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.1 System Management Concepts: Operating System and Devices.

Subroutines Overview and Understanding Paging Space Programming Requirements in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]