up | Inhaltsverzeichniss | Kommentar

Manual page for MACH_SWAPON(2)

mach_swapon - add a file for system paging/swapping.

SYNOPSIS

#include <sys/mach_swapon.h>

mach_swapon(file, flags, lowat, hiwat)
char *file;
unsigned int flags;
int lowat;
int hiwat;

DESCRIPTION

Mach_swapon makes file available to the system for paging and swapping. The available flags are:
MF_PREFER
This is a "preferred" paging file which means that space will be allocated out of it before non-preferred paging files until it is full.

Lowat specifies the low water mark for the file's size. If it is non-zero, pager will attempt to shrink the size of the file down to the low water mark as it frees paging resources. If it is zero, the file will never shrink. Hiwat specifies the high water mark for the file's size. If it is non-zero, the pager will not allow the paging file to grow above the high water mark. If it is zero, the file will grow as large as need be.

RETURN VALUE

If an error has occured, mach_swapon will return the error number, otherwise it will return 0.

SEE ALSO

mach_swapon.8


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97