icon Top 9 categories map      RocketAware > man pages >

swapon(2)

Tips: Browse or Search all pages for efficient awareness of more than 6000 of the most popular reusable and open source applications, functions, libraries, and FAQs.


The "RKT couplings" below include links to source code, updates, additional information, advice, FAQs, and overviews.


Home

Search all pages


Subjects

By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Math
Integer, Floating point, Matrix, Statistics, Boolean, ...

Processing
Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Communications
Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...

    

RocketLink!--> Man page versions: OpenBSD FreeBSD RedHat Others



SWAPON(2)                 OpenBSD Programmer's Manual                SWAPON(2)

NAME
     swapon - add a swap device for interleaved paging/swapping



SYNOPSIS
     #include <unistd.h>

     int
     swapon(const char *special);

DESCRIPTION
     swapon() makes the block device special available to the system for allo-
     cation for paging and swapping.  The names of potentially available de-
     vices are known to the system and defined at system configuration time.
     The size of the swap area on special is calculated at the time the device
     is first made available for swapping.

RETURN VALUES
     If an error has occurred, a value of -1 is returned and errno is set to
     indicate the error.

ERRORS
     swapon() succeeds unless:

     [ENOTDIR]     A component of the path prefix is not a directory.

     [ENAMETOOLONG]
                   A component of a pathname exceeded {NAME_MAX} characters,
                   or an entire path name exceeded {PATH_MAX} characters.

     [ENOENT]      The named device does not exist.

     [EACCES]      Search permission is denied for a component of the path
                   prefix.

     [ELOOP]       Too many symbolic links were encountered in translating the
                   pathname.

     [EPERM]       The caller is not the super-user.

     [ENOTBLK]     special is not a block device.

     [EBUSY]       The device specified by special has already been made
                   available for swapping

     [EINVAL]      The device configured by special was not configured into
                   the system as a swap device.

     [ENXIO]       The major device number of special is out of range (this
                   indicates no device driver exists for the associated hard-
                   ware).

     [EIO]         An I/O error occurred while opening the swap device.

     [EFAULT]      special points outside the process's allocated address
                   space.

SEE ALSO
     config(8),  swapon(8)

BUGS
     There is no way to stop swapping on a disk so that the pack may be dis-
     mounted.

     This call will be upgraded in future versions of the system.

HISTORY
     The swapon() function call appeared in 4.0BSD.

OpenBSD 2.6                      June 4, 1993                                2

Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY
SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts
Institute of Technology, Free Software Foundation, FreeBSD Inc., and others.



(Corrections, notes, and links courtesy of RocketAware.com)


[Detailed Topics]


[Overview Topics]

Up to: File System Information - Obtaining information of the filesystem as a whole. Status of disk subsystems, capacity, etc.
Up to: Hardware Access


RocketLink!--> Man page versions: OpenBSD FreeBSD RedHat Others






Rapid-Links: Search | About | Comments | Submit Path: RocketAware > man pages > swapon.2/
RocketAware.com is a service of Mib Software
Copyright 1999, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments