Debian Codegraph @

po/ko/man2/mlock.2.po

raw
1 # Korean translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # 정강훈 <[email protected]>, 2000.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2026-06-05 06:31+0200\n"
9 "PO-Revision-Date: 2000-05-20 08:57+0900\n"
10 "Last-Translator: 정강훈 <[email protected]>\n"
11 "Language-Team: Korean <[email protected]>\n"
12 "Language: ko\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=1; plural=0;\n"
17
18 #. type: TH
19 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
20 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
21 #, no-wrap
22 msgid "mlock"
23 msgstr "mlock"
24
25 #. type: TH
26 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
27 #: opensuse-tumbleweed
28 #, no-wrap
29 msgid "2026-02-11"
30 msgstr "2026년 2월 11일"
31
32 #. type: TH
33 #: archlinux debian-unstable
34 #, no-wrap
35 msgid "Linux man-pages 6.18"
36 msgstr "Linux man-pages 6.18"
37
38 #. type: SH
39 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
40 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
41 #, no-wrap
42 msgid "NAME"
43 msgstr "이름"
44
45 #. type: Plain text
46 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
47 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
48 msgid "mlock, mlock2, munlock, mlockall, munlockall - lock and unlock memory"
49 msgstr ""
50
51 #. type: SH
52 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
53 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
54 #, no-wrap
55 msgid "LIBRARY"
56 msgstr "라이브러리"
57
58 #. type: Plain text
59 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
60 #: opensuse-leap-16-1 opensuse-tumbleweed
61 msgid "Standard C library (I<libc>,\\ I<-lc>)"
62 msgstr "표준 C 라이브러리 (I<libc>,\\ I<-lc>)"
63
64 #. type: SH
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 #, no-wrap
68 msgid "SYNOPSIS"
69 msgstr "요약"
70
71 #. type: Plain text
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
74 #, no-wrap
75 msgid "B<#include E<lt>sys/mman.hE<gt>>\n"
76 msgstr "B<#include E<lt>sys/mman.hE<gt>>\n"
77
78 #. type: Plain text
79 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
80 #: opensuse-tumbleweed
81 #, no-wrap
82 msgid ""
83 "B<int mlock(>size_t size;\n"
84 "B< const void >I<addr>B<[>I<size>B<], size_t >I<size>B<);>\n"
85 "B<int mlock2(>size_t size;\n"
86 "B< const void >I<addr>B<[>I<size>B<], size_t >I<size>B<, unsigned int >I<flags>B<);>\n"
87 "B<int munlock(>size_t size;\n"
88 "B< const void >I<addr>B<[>I<size>B<], size_t >I<size>B<);>\n"
89 msgstr ""
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, no-wrap
95 msgid ""
96 "B<int mlockall(int >I<flags>B<);>\n"
97 "B<int munlockall(void);>\n"
98 msgstr ""
99 "B<int mlockall(int >I<flags>B<);>\n"
100 "B<int munlockall(void);>\n"
101
102 #. type: SH
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 #, no-wrap
106 msgid "DESCRIPTION"
107 msgstr "설명"
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 msgid ""
113 "B<mlock>(), B<mlock2>(), and B<mlockall>() lock part or all of the calling "
114 "process's virtual address space into RAM, preventing that memory from being "
115 "paged to the swap area."
116 msgstr ""
117
118 #. type: Plain text
119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
121 msgid ""
122 "B<munlock>() and B<munlockall>() perform the converse operation, unlocking "
123 "part or all of the calling process's virtual address space, so that pages in "
124 "the specified virtual address range can be swapped out again if required by "
125 "the kernel memory manager."
126 msgstr ""
127
128 #. type: Plain text
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 msgid "Memory locking and unlocking are performed in units of whole pages."
132 msgstr ""
133
134 #. type: SS
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 #, fuzzy, no-wrap
138 #| msgid "B<munlock>(2), B<mlockall>(2), B<munlockall>(2)"
139 msgid "mlock(), mlock2(), and munlock()"
140 msgstr "B<munlock>(2), B<mlockall>(2), B<munlockall>(2)"
141
142 #. type: Plain text
143 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
144 #: opensuse-leap-16-1 opensuse-tumbleweed
145 #, fuzzy
146 #| msgid ""
147 #| "B<mlock> disables paging for the memory in the range starting at I<addr> "
148 #| "with length I<len> bytes. All pages which contain a part of the specified "
149 #| "memory range are guaranteed be resident in RAM when the B<mlock> system "
150 #| "call returns successfully and they are guaranteed to stay in RAM until "
151 #| "the pages are unlocked by B<munlock> or B<munlockall>, or until the "
152 #| "process terminates or starts another program with B<exec>. Child "
153 #| "processes do not inherit page locks across a B<fork>."
154 msgid ""
155 "B<mlock>() locks pages in the address range starting at I<addr> and "
156 "continuing for I<size> bytes. All pages that contain a part of the "
157 "specified address range are guaranteed to be resident in RAM when the call "
158 "returns successfully; the pages are guaranteed to stay in RAM until later "
159 "unlocked."
160 msgstr ""
161 "B<mlock>은 I<addr>부터 I<len> 바이트 만큼의 메모리에 대한 페이징을 금지시킨"
162 "다. 지정된 메모리 범위의 일부를 포함하는 모든 페이지들은 B<mlock> 시스템 콜"
163 "이 성공했을 때 RAM에 상주하는 것이 보장된다. 그리고 이 페이지들은 B<munlock>"
164 "이나 B<munlockall>에 의해 잠금이 풀릴 때까지 또는 프로세스가 종료할 때까지 또"
165 "는 B<exec>에 의해 다른 프로그램이 시작할 때까지 RAM에 상주하는 것이 보장된"
166 "다. B<fork>에 의한 자식 프로세스는 페이지 잠금을 상속받지 않는다."
167
168 #. commit a8ca5d0ecbdde5cc3d7accacbd69968b0c98764e
169 #. commit de60f5f10c58d4f34b68622442c0e04180367f3f
170 #. commit b0f205c2a3082dd9081f9a94e50658c5fa906ff1
171 #. type: Plain text
172 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
173 #: opensuse-leap-16-1 opensuse-tumbleweed
174 #, fuzzy
175 #| msgid ""
176 #| "B<mlock> disables paging for the memory in the range starting at I<addr> "
177 #| "with length I<len> bytes. All pages which contain a part of the specified "
178 #| "memory range are guaranteed be resident in RAM when the B<mlock> system "
179 #| "call returns successfully and they are guaranteed to stay in RAM until "
180 #| "the pages are unlocked by B<munlock> or B<munlockall>, or until the "
181 #| "process terminates or starts another program with B<exec>. Child "
182 #| "processes do not inherit page locks across a B<fork>."
183 msgid ""
184 "B<mlock2>() also locks pages in the specified range starting at I<addr> and "
185 "continuing for I<size> bytes. However, the state of the pages contained in "
186 "that range after the call returns successfully will depend on the value in "
187 "the I<flags> argument."
188 msgstr ""
189 "B<mlock>은 I<addr>부터 I<len> 바이트 만큼의 메모리에 대한 페이징을 금지시킨"
190 "다. 지정된 메모리 범위의 일부를 포함하는 모든 페이지들은 B<mlock> 시스템 콜"
191 "이 성공했을 때 RAM에 상주하는 것이 보장된다. 그리고 이 페이지들은 B<munlock>"
192 "이나 B<munlockall>에 의해 잠금이 풀릴 때까지 또는 프로세스가 종료할 때까지 또"
193 "는 B<exec>에 의해 다른 프로그램이 시작할 때까지 RAM에 상주하는 것이 보장된"
194 "다. B<fork>에 의한 자식 프로세스는 페이지 잠금을 상속받지 않는다."
195
196 #. type: Plain text
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 #, fuzzy
200 #| msgid "The I<option-name> can be one of the following:"
201 msgid "The I<flags> argument can be either 0 or the following constant:"
202 msgstr "I<옵션-이름>은 다음 중 한 가지이다:"
203
204 #. type: TP
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 #, no-wrap
208 msgid "B<MLOCK_ONFAULT>"
209 msgstr "B<MLOCK_ONFAULT>"
210
211 #. type: Plain text
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 msgid ""
215 "Lock pages that are currently resident and mark the entire range so that the "
216 "remaining nonresident pages are locked when they are populated by a page "
217 "fault."
218 msgstr ""
219
220 #. type: Plain text
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 msgid "If I<flags> is 0, B<mlock2>() behaves exactly the same as B<mlock>()."
224 msgstr ""
225
226 #. type: Plain text
227 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
228 #: opensuse-leap-16-1 opensuse-tumbleweed
229 #, fuzzy
230 #| msgid ""
231 #| "B<mlock> disables paging for the memory in the range starting at I<addr> "
232 #| "with length I<len> bytes. All pages which contain a part of the specified "
233 #| "memory range are guaranteed be resident in RAM when the B<mlock> system "
234 #| "call returns successfully and they are guaranteed to stay in RAM until "
235 #| "the pages are unlocked by B<munlock> or B<munlockall>, or until the "
236 #| "process terminates or starts another program with B<exec>. Child "
237 #| "processes do not inherit page locks across a B<fork>."
238 msgid ""
239 "B<munlock>() unlocks pages in the address range starting at I<addr> and "
240 "continuing for I<size> bytes. After this call, all pages that contain a "
241 "part of the specified memory range can be moved to external swap space again "
242 "by the kernel."
243 msgstr ""
244 "B<mlock>은 I<addr>부터 I<len> 바이트 만큼의 메모리에 대한 페이징을 금지시킨"
245 "다. 지정된 메모리 범위의 일부를 포함하는 모든 페이지들은 B<mlock> 시스템 콜"
246 "이 성공했을 때 RAM에 상주하는 것이 보장된다. 그리고 이 페이지들은 B<munlock>"
247 "이나 B<munlockall>에 의해 잠금이 풀릴 때까지 또는 프로세스가 종료할 때까지 또"
248 "는 B<exec>에 의해 다른 프로그램이 시작할 때까지 RAM에 상주하는 것이 보장된"
249 "다. B<fork>에 의한 자식 프로세스는 페이지 잠금을 상속받지 않는다."
250
251 #. type: SS
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 #, fuzzy, no-wrap
255 #| msgid "B<munlock>(2), B<mlockall>(2), B<munlockall>(2)"
256 msgid "mlockall() and munlockall()"
257 msgstr "B<munlock>(2), B<mlockall>(2), B<munlockall>(2)"
258
259 #. type: Plain text
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 msgid ""
263 "B<mlockall>() locks all pages mapped into the address space of the calling "
264 "process. This includes the pages of the code, data, and stack segment, as "
265 "well as shared libraries, user space kernel data, shared memory, and memory-"
266 "mapped files. All mapped pages are guaranteed to be resident in RAM when "
267 "the call returns successfully; the pages are guaranteed to stay in RAM until "
268 "later unlocked."
269 msgstr ""
270
271 #. type: Plain text
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 msgid ""
275 "The I<flags> argument is constructed as the bitwise OR of one or more of the "
276 "following constants:"
277 msgstr ""
278
279 #. type: TP
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 #, no-wrap
283 msgid "B<MCL_CURRENT>"
284 msgstr "B<MCL_CURRENT>"
285
286 #. type: Plain text
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 msgid ""
290 "Lock all pages which are currently mapped into the address space of the "
291 "process."
292 msgstr ""
293
294 #. type: TP
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 #, no-wrap
298 msgid "B<MCL_FUTURE>"
299 msgstr "B<MCL_FUTURE>"
300
301 #. type: Plain text
302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
304 msgid ""
305 "Lock all pages which will become mapped into the address space of the "
306 "process in the future. These could be, for instance, new pages required by "
307 "a growing heap and stack as well as new memory-mapped files or shared memory "
308 "regions."
309 msgstr ""
310
311 #. type: TP
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 #, no-wrap
315 msgid "B<MCL_ONFAULT> (since Linux 4.4)"
316 msgstr ""
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 msgid ""
322 "Used together with B<MCL_CURRENT>, B<MCL_FUTURE>, or both. Mark all current "
323 "(with B<MCL_CURRENT>) or future (with B<MCL_FUTURE>) mappings to lock "
324 "pages when they are faulted in. When used with B<MCL_CURRENT>, all present "
325 "pages are locked, but B<mlockall>() will not fault in non-present pages. "
326 "When used with B<MCL_FUTURE>, all future mappings will be marked to lock "
327 "pages when they are faulted in, but they will not be populated by the lock "
328 "when the mapping is created. B<MCL_ONFAULT> must be used with either "
329 "B<MCL_CURRENT> or B<MCL_FUTURE> or both."
330 msgstr ""
331
332 #. type: Plain text
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 msgid ""
336 "If B<MCL_FUTURE> has been specified, then a later system call (e.g., "
337 "B<mmap>(2), B<sbrk>(2), B<malloc>(3)), may fail if it would cause the number "
338 "of locked bytes to exceed the permitted maximum (see below). In the same "
339 "circumstances, stack growth may likewise fail: the kernel will deny stack "
340 "expansion and deliver a B<SIGSEGV> signal to the process."
341 msgstr ""
342
343 #. type: Plain text
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 msgid ""
347 "B<munlockall>() unlocks all pages mapped into the address space of the "
348 "calling process."
349 msgstr ""
350
351 #. type: SH
352 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
353 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
354 #, no-wrap
355 msgid "RETURN VALUE"
356 msgstr "반환값"
357
358 #. type: Plain text
359 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
360 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
361 #, fuzzy
362 #| msgid ""
363 #| "On success, B<mlock> returns zero. On error, -1 is returned, I<errno> is "
364 #| "set appropriately, and no changes are made to any locks in the address "
365 #| "space of the process."
366 msgid ""
367 "On success, these system calls return 0. On error, -1 is returned, I<errno> "
368 "is set to indicate the error, and no changes are made to any locks in the "
369 "address space of the process."
370 msgstr ""
371 "성공시, B<mlock>은 0을 리턴한다. 에러시, -1이 리턴되며, I<errno>는 적절한 값"
372 "으로 설정된다. 그리고 해당 프로세스의 주소 공간의 잠금에 어떠한 변화도 일어나"
373 "지 않는다."
374
375 #. type: SH
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 #, no-wrap
379 msgid "ERRORS"
380 msgstr "에러"
381
382 #. type: TP
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 #, no-wrap
386 msgid "B<EAGAIN>"
387 msgstr "B<EAGAIN>"
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 msgid ""
393 "(B<mlock>(), B<mlock2>(), and B<munlock>()) Some or all of the specified "
394 "address range could not be locked."
395 msgstr ""
396
397 #. type: TP
398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
400 #, no-wrap
401 msgid "B<EINVAL>"
402 msgstr "B<EINVAL>"
403
404 #. type: Plain text
405 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
406 #: opensuse-leap-16-1 opensuse-tumbleweed
407 msgid ""
408 "(B<mlock>(), B<mlock2>(), and B<munlock>()) The result of the addition "
409 "I<addr>+I<size> was less than I<addr> (e.g., the addition may have resulted "
410 "in an overflow)."
411 msgstr ""
412
413 #. type: Plain text
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 msgid "(B<mlock2>()) Unknown I<flags> were specified."
417 msgstr ""
418
419 #. type: Plain text
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 msgid ""
423 "(B<mlockall>()) Unknown I<flags> were specified or B<MCL_ONFAULT> was "
424 "specified without either B<MCL_FUTURE> or B<MCL_CURRENT>."
425 msgstr ""
426
427 #. type: Plain text
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 msgid "(Not on Linux) I<addr> was not a multiple of the page size."
431 msgstr ""
432
433 #. type: TP
434 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
435 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
436 #, no-wrap
437 msgid "B<ENOMEM>"
438 msgstr "B<ENOMEM>"
439
440 #. type: Plain text
441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
443 #, fuzzy
444 #| msgid ""
445 #| "Some of the specified address range does not correspond to mapped pages "
446 #| "in the address space of the process or the process tried to exceed the "
447 #| "maximum number of allowed locked pages."
448 msgid ""
449 "(B<mlock>(), B<mlock2>(), and B<munlock>()) Some of the specified address "
450 "range does not correspond to mapped pages in the address space of the "
451 "process."
452 msgstr ""
453 "지정된 주소의 일정 부분이 해당 프로세스 주소 공간의 페이지와 일치하지 않거"
454 "나, 프로세스가 허용되는 잠금 페이지의 최대 수를 초과했다."
455
456 #. I.e., the number of VMAs would exceed the 64kB maximum
457 #. type: Plain text
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 msgid ""
461 "(B<mlock>(), B<mlock2>(), and B<munlock>()) Locking or unlocking a region "
462 "would result in the total number of mappings with distinct attributes (e.g., "
463 "locked versus unlocked) exceeding the allowed maximum. (For example, "
464 "unlocking a range in the middle of a currently locked mapping would result "
465 "in three mappings: two locked mappings at each end and an unlocked mapping "
466 "in the middle.)"
467 msgstr ""
468
469 #. type: Plain text
470 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
471 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
472 msgid ""
473 "(Linux 2.6.9 and later) the caller had a nonzero B<RLIMIT_MEMLOCK> soft "
474 "resource limit, but tried to lock more memory than the limit permitted. "
475 "This limit is not enforced if the process is privileged (B<CAP_IPC_LOCK>)."
476 msgstr ""
477
478 #. In the case of mlock(), this check is somewhat buggy: it doesn't
479 #. take into account whether the to-be-locked range overlaps with
480 #. already locked pages. Thus, suppose we allocate
481 #. (num_physpages / 4 + 1) of memory, and lock those pages once using
482 #. mlock(), and then lock the *same* page range a second time.
483 #. In the case, the second mlock() call will fail, since the check
484 #. calculates that the process is trying to lock (num_physpages / 2 + 2)
485 #. pages, which of course is not true. (MTK, Nov 04, kernel 2.4.28)
486 #. type: Plain text
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 msgid ""
490 "(Linux 2.4 and earlier) the calling process tried to lock more than half of "
491 "RAM."
492 msgstr ""
493
494 #. type: TP
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 #, no-wrap
498 msgid "B<EPERM>"
499 msgstr "B<EPERM>"
500
501 #. type: Plain text
502 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
503 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
504 msgid ""
505 "The caller is not privileged, but needs privilege (B<CAP_IPC_LOCK>) to "
506 "perform the requested operation."
507 msgstr ""
508
509 #. type: Plain text
510 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
511 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
512 msgid ""
513 "(B<munlockall>()) (Linux 2.6.8 and earlier) The caller was not privileged "
514 "(B<CAP_IPC_LOCK>)."
515 msgstr ""
516
517 #. type: SH
518 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
519 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
520 #, no-wrap
521 msgid "VERSIONS"
522 msgstr "버전S"
523
524 #. type: SS
525 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
526 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
527 #, no-wrap
528 msgid "Linux"
529 msgstr "리눅스"
530
531 #. type: Plain text
532 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
533 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
534 msgid ""
535 "Under Linux, B<mlock>(), B<mlock2>(), and B<munlock>() automatically round "
536 "I<addr> down to the nearest page boundary. However, the POSIX.1 "
537 "specification of B<mlock>() and B<munlock>() allows an implementation to "
538 "require that I<addr> is page aligned, so portable applications should ensure "
539 "this."
540 msgstr ""
541
542 #. type: Plain text
543 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
544 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
545 msgid ""
546 "The I<VmLck> field of the Linux-specific I</proc/>pidI</status> file shows "
547 "how many kilobytes of memory the process with ID I<PID> has locked using "
548 "B<mlock>(), B<mlock2>(), B<mlockall>(), and B<mmap>(2) B<MAP_LOCKED>."
549 msgstr ""
550
551 #. type: SH
552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
554 #, no-wrap
555 msgid "STANDARDS"
556 msgstr "표준"
557
558 #. type: TP
559 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
560 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
561 #, no-wrap
562 msgid "B<mlock>()"
563 msgstr "B<mlock>()"
564
565 #. type: TQ
566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
568 #, no-wrap
569 msgid "B<munlock>()"
570 msgstr "B<munlock>()"
571
572 #. type: TQ
573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
575 #, no-wrap
576 msgid "B<mlockall>()"
577 msgstr "B<mlockall>()"
578
579 #. type: TQ
580 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
581 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
582 #, no-wrap
583 msgid "B<munlockall>()"
584 msgstr "B<munlockall>()"
585
586 #. type: Plain text
587 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
588 #: opensuse-tumbleweed
589 msgid "POSIX.1-2024."
590 msgstr "POSIX.1-2024."
591
592 #. type: TP
593 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
594 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
595 #, no-wrap
596 msgid "B<mlock2>()"
597 msgstr "B<mlock2>()"
598
599 #. type: Plain text
600 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
601 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
602 msgid "Linux."
603 msgstr "리눅스."
604
605 #. type: Plain text
606 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
607 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
608 #, fuzzy
609 #| msgid ""
610 #| "On POSIX systems on which B<mlock> and B<munlock> are available, "
611 #| "B<_POSIX_MEMLOCK_RANGE> is defined in E<lt>unistd.hE<gt> and the value "
612 #| "B<PAGESIZE> from E<lt>limits.hE<gt> indicates the number of bytes per "
613 #| "page."
614 msgid ""
615 "On POSIX systems on which B<mlock>() and B<munlock>() are available, "
616 "B<_POSIX_MEMLOCK_RANGE> is defined in I<E<lt>unistd.hE<gt>> and the number "
617 "of bytes in a page can be determined from the constant B<PAGESIZE> (if "
618 "defined) in I<E<lt>limits.hE<gt>> or by calling I<sysconf(_SC_PAGESIZE)>."
619 msgstr ""
620 "B<mlock>과 B<munlock>를 이용할 수 있는 POSIX 시스템에서 "
621 "B<_POSIX_MEMLOCK_RANGE>는 E<lt>unistd.hE<gt>에 정의되어 있으며 "
622 "E<lt>limits.hE<gt>에서 B<PAGESIZE>는 페이지당 바이트 수를 가리킨다."
623
624 #. POSIX.1-2001: It shall be defined to -1 or 0 or 200112L.
625 #. -1: unavailable, 0: ask using sysconf().
626 #. glibc defines it to 1.
627 #. type: Plain text
628 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
629 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
630 #, fuzzy
631 #| msgid ""
632 #| "On POSIX systems on which B<mlock> and B<munlock> are available, "
633 #| "B<_POSIX_MEMLOCK_RANGE> is defined in E<lt>unistd.hE<gt> and the value "
634 #| "B<PAGESIZE> from E<lt>limits.hE<gt> indicates the number of bytes per "
635 #| "page."
636 msgid ""
637 "On POSIX systems on which B<mlockall>() and B<munlockall>() are available, "
638 "B<_POSIX_MEMLOCK> is defined in I<E<lt>unistd.hE<gt>> to a value greater "
639 "than 0. (See also B<sysconf>(3).)"
640 msgstr ""
641 "B<mlock>과 B<munlock>를 이용할 수 있는 POSIX 시스템에서 "
642 "B<_POSIX_MEMLOCK_RANGE>는 E<lt>unistd.hE<gt>에 정의되어 있으며 "
643 "E<lt>limits.hE<gt>에서 B<PAGESIZE>는 페이지당 바이트 수를 가리킨다."
644
645 #. type: SH
646 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
647 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
648 #, no-wrap
649 msgid "HISTORY"
650 msgstr "이력"
651
652 #. type: Plain text
653 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
654 #: opensuse-tumbleweed
655 #, fuzzy
656 #| msgid "SVr4, POSIX.1-2001."
657 msgid "SVr4, POSIX.1-1996."
658 msgstr "SVr4, POSIX.1-2001."
659
660 #. type: Plain text
661 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
662 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
663 msgid "Linux 4.4, glibc 2.27."
664 msgstr "Linux 4.4, glibc 2.27."
665
666 #. type: SH
667 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
668 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
669 #, no-wrap
670 msgid "NOTES"
671 msgstr "주의"
672
673 #. type: Plain text
674 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
675 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
676 #, fuzzy
677 #| msgid ""
678 #| "Memory locking has two main applications: real-time algorithms and high-"
679 #| "security data processing. Real-time applications require deterministic "
680 #| "timing, and, like scheduling, paging is one major cause of unexpected "
681 #| "program execution delays. Real-time applications will usually also switch "
682 #| "to a real-time scheduler with B<sched_setscheduler>. Cryptographic "
683 #| "security software often handles critical bytes like passwords or secret "
684 #| "keys as data structures. As a result of paging, these secrets could be "
685 #| "transfered onto a persistent swap store medium, where they might be "
686 #| "accessible to the enemy long after the security software has erased the "
687 #| "secrets in RAM and terminated."
688 msgid ""
689 "Memory locking has two main applications: real-time algorithms and high-"
690 "security data processing. Real-time applications require deterministic "
691 "timing, and, like scheduling, paging is one major cause of unexpected "
692 "program execution delays. Real-time applications will usually also switch "
693 "to a real-time scheduler with B<sched_setscheduler>(2). Cryptographic "
694 "security software often handles critical bytes like passwords or secret keys "
695 "as data structures. As a result of paging, these secrets could be "
696 "transferred onto a persistent swap store medium, where they might be "
697 "accessible to the enemy long after the security software has erased the "
698 "secrets in RAM and terminated. (But be aware that the suspend mode on "
699 "laptops and some desktop computers will save a copy of the system's RAM to "
700 "disk, regardless of memory locks.)"
701 msgstr ""
702 "메모리 잠금은 주로 두 가지 경우에 응용된다: 실시간 알고리즘과 high-security "
703 "데이타 처리. 실시간 응용프로그램의 경우는 결정론적인 타이밍과 스케줄링 같은 "
704 "것이 요구되는데, 이 때 페이징은 예상치 못한 프로그램 실행 지연을 야기하는 주"
705 "요 원인이다. 또한 실시간 응용프로그램은 보통 B<sched_setscheduler>로 실시간 "
706 "스케쥴러를 사용한다. 암호 보안 소프트웨어는 데이터로 암호나 보안키 같은 중요 "
707 "바이트를 처리한다. 페이징 결과, 이 데이터가 지속적인 스왑 저장 장치에 저장되"
708 "며 보안 소프트웨어가 RAM에서 이 데이터를 지우고 끝난 후에도 오랫동안 외부에 "
709 "노출될 수 있다."
710
711 #. type: Plain text
712 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
713 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
714 msgid ""
715 "Real-time processes that are using B<mlockall>() to prevent delays on page "
716 "faults should reserve enough locked stack pages before entering the time-"
717 "critical section, so that no page fault can be caused by function calls. "
718 "This can be achieved by calling a function that allocates a sufficiently "
719 "large automatic variable (an array) and writes to the memory occupied by "
720 "this array in order to touch these stack pages. This way, enough pages will "
721 "be mapped for the stack and can be locked into RAM. The dummy writes ensure "
722 "that not even copy-on-write page faults can occur in the critical section."
723 msgstr ""
724
725 #. type: Plain text
726 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
727 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
728 msgid ""
729 "Memory locks are not inherited by a child created via B<fork>(2) and are "
730 "automatically removed (unlocked) during an B<execve>(2) or when the process "
731 "terminates. The B<mlockall>() B<MCL_FUTURE> and B<MCL_FUTURE | "
732 "MCL_ONFAULT> settings are not inherited by a child created via B<fork>(2) "
733 "and are cleared during an B<execve>(2)."
734 msgstr ""
735
736 #. type: Plain text
737 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
738 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
739 msgid ""
740 "Note that B<fork>(2) will prepare the address space for a copy-on-write "
741 "operation. The consequence is that any write access that follows will cause "
742 "a page fault that in turn may cause high latencies for a real-time process. "
743 "Therefore, it is crucial not to invoke B<fork>(2) after an B<mlockall>() "
744 "or B<mlock>() operation\\[em]not even from a thread which runs at a low "
745 "priority within a process which also has a thread running at elevated "
746 "priority."
747 msgstr ""
748
749 #. type: Plain text
750 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
751 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
752 msgid ""
753 "The memory lock on an address range is automatically removed if the address "
754 "range is unmapped via B<munmap>(2)."
755 msgstr ""
756
757 #. type: Plain text
758 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
759 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
760 #, fuzzy
761 #| msgid ""
762 #| "Memory locks do not stack, i.e., pages which have been locked several "
763 #| "times by calls to B<mlock> or B<mlockall> will be unlocked by a single "
764 #| "call to B<munlock> for the corresponding range or by B<munlockall>. "
765 #| "Pages which are mapped to several locations or by several processes stay "
766 #| "locked into RAM as long as they are locked at least at one location or by "
767 #| "at least one process."
768 msgid ""
769 "Memory locks do not stack, that is, pages which have been locked several "
770 "times by calls to B<mlock>(), B<mlock2>(), or B<mlockall>() will be "
771 "unlocked by a single call to B<munlock>() for the corresponding range or by "
772 "B<munlockall>(). Pages which are mapped to several locations or by several "
773 "processes stay locked into RAM as long as they are locked at least at one "
774 "location or by at least one process."
775 msgstr ""
776 "메모리 잠근은 스택이 아니다. 즉, B<mlock>이나 B<mlockall>이 여러번 호출되어 "
777 "여러번 잠겼던 페이지는 상응하는 범위에 대한 B<munlock>이나 B<munlockall>를 "
778 "단 한번 호출하여 잠금을 풀 수 있다. 여러 위치나 여러 프로세스에 의해 잠겨진 "
779 "페이지는 적어도 하나의 위치나 프로세스에 의해 잠겨져 있는 한 RAM에서 계속적으"
780 "로 잠금이 유지된다."
781
782 #. type: Plain text
783 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
784 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
785 msgid ""
786 "If a call to B<mlockall>() which uses the B<MCL_FUTURE> flag is followed by "
787 "another call that does not specify this flag, the changes made by the "
788 "B<MCL_FUTURE> call will be lost."
789 msgstr ""
790
791 #. type: Plain text
792 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
793 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
794 msgid ""
795 "The B<mlock2>() B<MLOCK_ONFAULT> flag and the B<mlockall>() B<MCL_ONFAULT> "
796 "flag allow efficient memory locking for applications that deal with large "
797 "mappings where only a (small) portion of pages in the mapping are touched. "
798 "In such cases, locking all of the pages in a mapping would incur a "
799 "significant penalty for memory locking."
800 msgstr ""
801
802 #. type: SS
803 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
804 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
805 #, no-wrap
806 msgid "Limits and permissions"
807 msgstr ""
808
809 #. type: Plain text
810 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
811 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
812 msgid ""
813 "In Linux 2.6.8 and earlier, a process must be privileged (B<CAP_IPC_LOCK>) "
814 "in order to lock memory and the B<RLIMIT_MEMLOCK> soft resource limit "
815 "defines a limit on how much memory the process may lock."
816 msgstr ""
817
818 #. type: Plain text
819 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
820 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
821 msgid ""
822 "Since Linux 2.6.9, no limits are placed on the amount of memory that a "
823 "privileged process can lock and the B<RLIMIT_MEMLOCK> soft resource limit "
824 "instead defines a limit on how much memory an unprivileged process may lock."
825 msgstr ""
826
827 #. type: SH
828 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
829 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
830 #, no-wrap
831 msgid "BUGS"
832 msgstr "버그"
833
834 #. commit 0cf2f6f6dc605e587d2c1120f295934c77e810e8
835 #. type: Plain text
836 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
837 #: opensuse-leap-16-1 opensuse-tumbleweed
838 msgid ""
839 "In Linux 4.8 and earlier, a bug in the kernel's accounting of locked memory "
840 "for unprivileged processes (i.e., without B<CAP_IPC_LOCK>) meant that if "
841 "the region specified by I<addr> and I<size> overlapped an existing lock, "
842 "then the already locked bytes in the overlapping region were counted twice "
843 "when checking against the limit. Such double accounting could incorrectly "
844 "calculate a \"total locked memory\" value for the process that exceeded the "
845 "B<RLIMIT_MEMLOCK> limit, with the result that B<mlock>() and B<mlock2>() "
846 "would fail on requests that should have succeeded. This bug was fixed in "
847 "Linux 4.9."
848 msgstr ""
849
850 #. type: Plain text
851 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
852 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
853 msgid ""
854 "In Linux 2.4 series of kernels up to and including Linux 2.4.17, a bug "
855 "caused the B<mlockall>() B<MCL_FUTURE> flag to be inherited across a "
856 "B<fork>(2). This was rectified in Linux 2.4.18."
857 msgstr ""
858
859 #. See the following LKML thread:
860 #. http://marc.theaimsgroup.com/?l=linux-kernel&m=113801392825023&w=2
861 #. "Rationale for RLIMIT_MEMLOCK"
862 #. 23 Jan 2006
863 #. type: Plain text
864 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
865 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
866 msgid ""
867 "Since Linux 2.6.9, if a privileged process calls I<mlockall(MCL_FUTURE)> and "
868 "later drops privileges (loses the B<CAP_IPC_LOCK> capability by, for "
869 "example, setting its effective UID to a nonzero value), then subsequent "
870 "memory allocations (e.g., B<mmap>(2), B<brk>(2)) will fail if the "
871 "B<RLIMIT_MEMLOCK> resource limit is encountered."
872 msgstr ""
873
874 #. type: SH
875 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
876 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
877 #, no-wrap
878 msgid "SEE ALSO"
879 msgstr "추가 참조"
880
881 #. type: Plain text
882 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
883 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
884 msgid ""
885 "B<mincore>(2), B<mmap>(2), B<setrlimit>(2), B<shmctl>(2), B<sysconf>(3), "
886 "B<proc>(5), B<capabilities>(7)"
887 msgstr ""
888 "B<mincore>(2), B<mmap>(2), B<setrlimit>(2), B<shmctl>(2), B<sysconf>(3), "
889 "B<proc>(5), B<capabilities>(7)"
890
891 #. type: TH
892 #: debian-trixie
893 #, no-wrap
894 msgid "2024-05-02"
895 msgstr "2024년 5월 2일"
896
897 #. type: TH
898 #: debian-trixie
899 #, no-wrap
900 msgid "Linux man-pages 6.9.1"
901 msgstr "Linux man-pages 6.9.1"
902
903 #. type: Plain text
904 #: debian-trixie
905 msgid "Standard C library (I<libc>, I<-lc>)"
906 msgstr "표준 C 라이브러리 (I<libc>, I<-lc>)"
907
908 #. type: Plain text
909 #: debian-trixie
910 #, no-wrap
911 msgid ""
912 "B<int mlock(const void >I<addr>B<[.>I<len>B<], size_t >I<len>B<);>\n"
913 "B<int mlock2(const void >I<addr>B<[.>I<len>B<], size_t >I<len>B<, unsigned int >I<flags>B<);>\n"
914 "B<int munlock(const void >I<addr>B<[.>I<len>B<], size_t >I<len>B<);>\n"
915 msgstr ""
916
917 #. type: Plain text
918 #: debian-trixie
919 #, fuzzy
920 #| msgid ""
921 #| "B<mlock> disables paging for the memory in the range starting at I<addr> "
922 #| "with length I<len> bytes. All pages which contain a part of the specified "
923 #| "memory range are guaranteed be resident in RAM when the B<mlock> system "
924 #| "call returns successfully and they are guaranteed to stay in RAM until "
925 #| "the pages are unlocked by B<munlock> or B<munlockall>, or until the "
926 #| "process terminates or starts another program with B<exec>. Child "
927 #| "processes do not inherit page locks across a B<fork>."
928 msgid ""
929 "B<mlock>() locks pages in the address range starting at I<addr> and "
930 "continuing for I<len> bytes. All pages that contain a part of the specified "
931 "address range are guaranteed to be resident in RAM when the call returns "
932 "successfully; the pages are guaranteed to stay in RAM until later unlocked."
933 msgstr ""
934 "B<mlock>은 I<addr>부터 I<len> 바이트 만큼의 메모리에 대한 페이징을 금지시킨"
935 "다. 지정된 메모리 범위의 일부를 포함하는 모든 페이지들은 B<mlock> 시스템 콜"
936 "이 성공했을 때 RAM에 상주하는 것이 보장된다. 그리고 이 페이지들은 B<munlock>"
937 "이나 B<munlockall>에 의해 잠금이 풀릴 때까지 또는 프로세스가 종료할 때까지 또"
938 "는 B<exec>에 의해 다른 프로그램이 시작할 때까지 RAM에 상주하는 것이 보장된"
939 "다. B<fork>에 의한 자식 프로세스는 페이지 잠금을 상속받지 않는다."
940
941 #. commit a8ca5d0ecbdde5cc3d7accacbd69968b0c98764e
942 #. commit de60f5f10c58d4f34b68622442c0e04180367f3f
943 #. commit b0f205c2a3082dd9081f9a94e50658c5fa906ff1
944 #. type: Plain text
945 #: debian-trixie
946 msgid ""
947 "B<mlock2>() also locks pages in the specified range starting at I<addr> and "
948 "continuing for I<len> bytes. However, the state of the pages contained in "
949 "that range after the call returns successfully will depend on the value in "
950 "the I<flags> argument."
951 msgstr ""
952
953 #. type: Plain text
954 #: debian-trixie
955 msgid ""
956 "B<munlock>() unlocks pages in the address range starting at I<addr> and "
957 "continuing for I<len> bytes. After this call, all pages that contain a part "
958 "of the specified memory range can be moved to external swap space again by "
959 "the kernel."
960 msgstr ""
961
962 #. type: Plain text
963 #: debian-trixie
964 msgid ""
965 "(B<mlock>(), B<mlock2>(), and B<munlock>()) The result of the addition "
966 "I<addr>+I<len> was less than I<addr> (e.g., the addition may have resulted "
967 "in an overflow)."
968 msgstr ""
969
970 #. type: Plain text
971 #: debian-trixie fedora-44 fedora-rawhide
972 msgid "POSIX.1-2008."
973 msgstr "POSIX.1-2008."
974
975 #. type: Plain text
976 #: debian-trixie fedora-44 fedora-rawhide
977 msgid "POSIX.1-2001, POSIX.1-2008, SVr4."
978 msgstr "POSIX.1-2001, POSIX.1-2008, SVr4."
979
980 #. commit 0cf2f6f6dc605e587d2c1120f295934c77e810e8
981 #. type: Plain text
982 #: debian-trixie
983 msgid ""
984 "In Linux 4.8 and earlier, a bug in the kernel's accounting of locked memory "
985 "for unprivileged processes (i.e., without B<CAP_IPC_LOCK>) meant that if "
986 "the region specified by I<addr> and I<len> overlapped an existing lock, then "
987 "the already locked bytes in the overlapping region were counted twice when "
988 "checking against the limit. Such double accounting could incorrectly "
989 "calculate a \"total locked memory\" value for the process that exceeded the "
990 "B<RLIMIT_MEMLOCK> limit, with the result that B<mlock>() and B<mlock2>() "
991 "would fail on requests that should have succeeded. This bug was fixed in "
992 "Linux 4.9."
993 msgstr ""
994
995 #. type: TH
996 #: fedora-44 fedora-rawhide
997 #, no-wrap
998 msgid "2024-11-17"
999 msgstr "2024년 11월 17일"
1000
1001 #. type: TH
1002 #: fedora-44 fedora-rawhide
1003 #, no-wrap
1004 msgid "Linux man-pages 6.13"
1005 msgstr "Linux man-pages 6.13"
1006
1007 #. type: Plain text
1008 #: fedora-44 fedora-rawhide
1009 #, no-wrap
1010 msgid ""
1011 "B<int mlock(const void >I<addr>B<[.>I<size>B<], size_t >I<size>B<);>\n"
1012 "B<int mlock2(const void >I<addr>B<[.>I<size>B<], size_t >I<size>B<, unsigned int >I<flags>B<);>\n"
1013 "B<int munlock(const void >I<addr>B<[.>I<size>B<], size_t >I<size>B<);>\n"
1014 msgstr ""
1015
1016 #. type: TH
1017 #: mageia-cauldron
1018 #, no-wrap
1019 msgid "Linux man-pages 6.17"
1020 msgstr "Linux man-pages 6.17"
1021
1022 #. type: TH
1023 #: opensuse-leap-16-1 opensuse-tumbleweed
1024 #, no-wrap
1025 msgid "Linux man-pages (unreleased)"
1026 msgstr "Linux man-pages (미공개)"