Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ swapon(2) — SunOS 0.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

swapon(8)

SWAPON(2)  —  System Interface Manual — System Calls

NAME

swapon, swapoff − add/delete a swap device for interleaved paging/swapping

SYNOPSIS

index = swapon(blkdev, size, q)
int index;
char ∗blkdev;
int size, q;

swapoff(index, messily)
int index, messily;

DESCRIPTION

Swapon makes the argument block device available to the system for allocation for paging and swapping.  The number of blocks to be made available is specified as size and the “quality factor” is specified as q.  The latter quantity helps the system decide how to divide the paging and swapping load.  Higher q’s suggest secondary choices for swap areas.  The returned index may be used in a later swapoff call. 

Swapoff removes the usage of the swap device number index as a system swapping device.  If messily is not set, then the system attempts to pull pages off this device by migrating them to other devices.  If messily is set (e.g. if the device has crashed), then processes using the device may have bad things happen to them. 

RETURN VALUE

A 0 return indicates success; −1 indicates a problem. 

ERRORS

To be described. 

SEE ALSO

swapon(8)

BUGS

Sun System Release 0.3  —  2/13/83

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026