Returns paging device status.
Standard C Library (libc.a)
#include <sys/vminfo.h>
int swapqry (PathName, Buffer)
char *PathName;
struct pginfo *Buffer;
The swapqry subroutine returns information to a user-designated buffer about active paging and swap devices.
PathName | Specifies the full path name of the block device. |
Buffer | Points to the buffer into which the status is stored. |
The swapqry subroutine returns 0 if the PathName value is an active paging device. If the Buffer value is not null, it also returns status information.
If an error occurs, the subroutine returns -1 and the errno global variable is set to indicate the error, as follows:
The swapoff subroutine, swapon subroutine.
The 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.