swapon.2
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 2 代码 · 共 84 行
2
84 行
.\" SCCSID: @(#)swapon.2 4.1 12/9/88.TH swapon 2.SH Nameswapon \- add a swap device for interleaved paging/swapping.SH Syntax.nf.B swapon(special).B char *special;.fi.SH Description.NXR "swapon system call".NXR "device" "allocating for paging".NXR "device" "allocating for swapping"The.PN swaponsystem callmakes the block device .I special available to the system forallocation for paging and swapping. The names of potentiallyavailable devices are known to the system and defined at systemconfiguration time. The size of the swap area on .I special is calculated at the time the device is first made availablefor swapping..SH RestrictionsThere is no way to stop swapping on a disk so that the pack may bedismounted..SH DiagnosticsThe.PN swaponsystem call succeeds unless:.TP 15[ENOTDIR]A component of the path prefix is not a directory..TP 15[ENAMETOOLONG]A component of a pathname exceeded 255 characters, or an entirepathname exceeded 1023 characters..TP 15[ENOENT]The named device does not exist..TP 15[EACCES]Search permission is denied for a component of the path prefix..TP 15[ELOOP]Too many symbolic links were encountered in translating thepathname..TP 15[EPERM]The caller is not the super-user..TP 15[ENOTBLK]The.I specialis not a block device..TP 15[EBUSY]The device specified by.I specialhas already been made available for swapping..TP 15[EINVAL]The device configured by.I specialwas not configured into the system as a swap device..TP 15[ENXIO]The major device number of.I specialis out of range. (This indicates that no devicedriver exists for the associated hardware.).TP 15[EIO]An I/O error occurred while opening the swap device..TP 15[EFAULT]The.I specialpoints outside the process's allocated address space..SH See Alsoconfig(8), swapon(8)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?