OSDN Git Service

(split) Convert contrib and obsolete pages to UTF-8.
[linuxjm/LDP_man-pages.git] / obsolete / man2 / munlockall.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright (C) Markus Kuhn, 1996
4 .\"
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
9 .\"
10 .\" The GNU General Public License's references to "object code"
11 .\" and "executables" are to be interpreted as the output of any
12 .\" document formatting or typesetting system, including
13 .\" intermediate and printed output.
14 .\"
15 .\" This manual is distributed in the hope that it will be useful,
16 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 .\" GNU General Public License for more details.
19 .\"
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual; if not, write to the Free
22 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
23 .\" USA.
24 .\"
25 .\" 1995-11-26  Markus Kuhn <mskuhn@cip.informatik.uni-erlangen.de>
26 .\"      First version written
27 .\"
28 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
29 .\"         all rights reserved.
30 .\" Translated Sun Feb 23 19:48:34 JST 1997
31 .\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
32 .\"
33 .\"WORD:        paging                  ページング
34 .\"WORD:        process                 プロセス
35 .\"WORD:        lock                    ロック
36 .\"WORD:        unlock                  アンロック
37 .\"
38 .TH MUNLOCKALL 2 "1995-11-26" "Linux 1.3.43" "Linux Programmer's Manual"
39 .SH 名前
40 munlockall \- 呼び出したプロセスのページングを再開する
41 .SH 書式
42 .nf
43 .B #include <sys/mman.h>
44 .sp
45 \fBint munlockall(void);
46 .fi
47 .SH 説明
48 .B munlockall
49 は呼び出したプロセスのアドレス空間にマップされている全てのページの
50 ページング(paging)を再開(reenable)する。
51
52 メモリのロック(lock)は累積しない。例えば複数回
53 .B mlock
54
55 .B mlockall
56 を呼び出してロックされたページも一回の
57 .BR munlockall
58 によってアンロック(unlock)される。
59 複数の場所や複数のプロセスにマップされているページは、少なくとも一つの場所、
60 一つのプロセスでロックされている限りは RAM に残り続ける。
61
62 .B mlockall
63
64 .B munlockall
65 が使用可能である POSIX システムでは
66 .B _POSIX_MEMLOCK
67 が <unistd.h> に定義されている。
68 .SH 返り値
69 成功した場合は、
70 .B munlockall
71 はゼロを返す。エラーの場合は、\-1 を返し
72 .I errno
73 に適切な値を設定する。
74
75 .SH 準拠
76 POSIX.1b, SVr4
77 .SH 関連項目
78 .BR mlockall (2),
79 .BR mlock (2), 
80 .BR munlock (2)