Debian Codegraph @

po/pt_BR/man2/mlock.2.po

raw
1 # Brazilian Portuguese translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # André Luiz Fassone <[email protected]>, 2001.
5 # Ricardo C.O.Freitas <[email protected]>, 2001.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:31+0200\n"
10 "PO-Revision-Date: 2001-06-02 19:20-0300\n"
11 "Last-Translator: Ricardo C.O.Freitas <[email protected]>\n"
12 "Language-Team: Brazilian Portuguese <debian-l10n-"
13 "[email protected]>\n"
14 "Language: pt_BR\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
19 "X-Generator: Virtaal 1.0.0-beta1\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, no-wrap
25 msgid "mlock"
26 msgstr "mlock"
27
28 #. type: TH
29 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
30 #: opensuse-tumbleweed
31 #, no-wrap
32 msgid "2026-02-11"
33 msgstr "11 fevereiro 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, fuzzy, no-wrap
38 #| msgid "Linux man-pages 6.17"
39 msgid "Linux man-pages 6.18"
40 msgstr "Linux man-pages 6.17"
41
42 #. type: SH
43 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
44 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
45 #, no-wrap
46 msgid "NAME"
47 msgstr "NOME"
48
49 #. type: Plain text
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 msgid "mlock, mlock2, munlock, mlockall, munlockall - lock and unlock memory"
53 msgstr ""
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "LIBRARY"
60 msgstr "BIBLIOTECA"
61
62 #. type: Plain text
63 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
64 #: opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "Standard C library (I<libc>,\\ I<-lc>)"
66 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "SYNOPSIS"
73 msgstr "SINOPSE"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "B<#include E<lt>sys/mman.hE<gt>>\n"
80 msgstr "B<#include E<lt>sys/mman.hE<gt>>\n"
81
82 #. type: Plain text
83 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
84 #: opensuse-tumbleweed
85 #, fuzzy, no-wrap
86 #| msgid ""
87 #| "B<int mlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
88 #| "B<int mlock2(const void *>I<addr>B<, size_t >I<len>B<, int >I<flags>B<);>\n"
89 #| "B<int munlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
90 msgid ""
91 "B<int mlock(>size_t size;\n"
92 "B< const void >I<addr>B<[>I<size>B<], size_t >I<size>B<);>\n"
93 "B<int mlock2(>size_t size;\n"
94 "B< const void >I<addr>B<[>I<size>B<], size_t >I<size>B<, unsigned int >I<flags>B<);>\n"
95 "B<int munlock(>size_t size;\n"
96 "B< const void >I<addr>B<[>I<size>B<], size_t >I<size>B<);>\n"
97 msgstr ""
98 "B<int mlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
99 "B<int mlock2(const void *>I<addr>B<, size_t >I<len>B<, int >I<flags>B<);>\n"
100 "B<int munlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
101
102 #. type: Plain text
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 #, no-wrap
106 msgid ""
107 "B<int mlockall(int >I<flags>B<);>\n"
108 "B<int munlockall(void);>\n"
109 msgstr ""
110 "B<int mlockall(int >I<flags>B<);>\n"
111 "B<int munlockall(void);>\n"
112
113 #. type: SH
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 #, no-wrap
117 msgid "DESCRIPTION"
118 msgstr "DESCRIÇÃO"
119
120 #. type: Plain text
121 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
122 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
123 msgid ""
124 "B<mlock>(), B<mlock2>(), and B<mlockall>() lock part or all of the calling "
125 "process's virtual address space into RAM, preventing that memory from being "
126 "paged to the swap area."
127 msgstr ""
128
129 #. type: Plain text
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 msgid ""
133 "B<munlock>() and B<munlockall>() perform the converse operation, unlocking "
134 "part or all of the calling process's virtual address space, so that pages in "
135 "the specified virtual address range can be swapped out again if required by "
136 "the kernel memory manager."
137 msgstr ""
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 msgid "Memory locking and unlocking are performed in units of whole pages."
143 msgstr ""
144
145 #. type: SS
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 #, no-wrap
149 msgid "mlock(), mlock2(), and munlock()"
150 msgstr "mlock(), mlock2() e munlock()"
151
152 #. type: Plain text
153 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
154 #: opensuse-leap-16-1 opensuse-tumbleweed
155 #, fuzzy
156 #| msgid ""
157 #| "B<mlock> disables paging for the memory in the range starting at I<addr> "
158 #| "with length I<len> bytes. All pages which contain a part of the specified "
159 #| "memory range are guaranteed be resident in RAM when the B<mlock> system "
160 #| "call returns successfully and they are guaranteed to stay in RAM until "
161 #| "the pages are unlocked by B<munlock> or B<munlockall>, or until the "
162 #| "process terminates or starts another program with B<exec>. Child "
163 #| "processes do not inherit page locks across a B<fork>."
164 msgid ""
165 "B<mlock>() locks pages in the address range starting at I<addr> and "
166 "continuing for I<size> bytes. All pages that contain a part of the "
167 "specified address range are guaranteed to be resident in RAM when the call "
168 "returns successfully; the pages are guaranteed to stay in RAM until later "
169 "unlocked."
170 msgstr ""
171 "B<mlock> desabilita a paginação para intervalos de memória iniciando em "
172 "I<addr> com comprimento de I<len> bytes. Todas as páginas que contém uma "
173 "parte do intervalo de memória especificado estão garantidas de estarem na "
174 "RAM quando a chamada de sistema B<mlock> é realizada com sucesso e permancem "
175 "assim até que as páginas sejam desbloqueadas por B<munlock> ou "
176 "B<munlockall>, ou até que o processo termine ou inicie outro programa com "
177 "B<exec>. Processos filhos não herdam bloqueio de página através de um "
178 "B<fork>."
179
180 #. commit a8ca5d0ecbdde5cc3d7accacbd69968b0c98764e
181 #. commit de60f5f10c58d4f34b68622442c0e04180367f3f
182 #. commit b0f205c2a3082dd9081f9a94e50658c5fa906ff1
183 #. type: Plain text
184 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
185 #: opensuse-leap-16-1 opensuse-tumbleweed
186 #, fuzzy
187 #| msgid ""
188 #| "B<mlock> disables paging for the memory in the range starting at I<addr> "
189 #| "with length I<len> bytes. All pages which contain a part of the specified "
190 #| "memory range are guaranteed be resident in RAM when the B<mlock> system "
191 #| "call returns successfully and they are guaranteed to stay in RAM until "
192 #| "the pages are unlocked by B<munlock> or B<munlockall>, or until the "
193 #| "process terminates or starts another program with B<exec>. Child "
194 #| "processes do not inherit page locks across a B<fork>."
195 msgid ""
196 "B<mlock2>() also locks pages in the specified range starting at I<addr> and "
197 "continuing for I<size> bytes. However, the state of the pages contained in "
198 "that range after the call returns successfully will depend on the value in "
199 "the I<flags> argument."
200 msgstr ""
201 "B<mlock> desabilita a paginação para intervalos de memória iniciando em "
202 "I<addr> com comprimento de I<len> bytes. Todas as páginas que contém uma "
203 "parte do intervalo de memória especificado estão garantidas de estarem na "
204 "RAM quando a chamada de sistema B<mlock> é realizada com sucesso e permancem "
205 "assim até que as páginas sejam desbloqueadas por B<munlock> ou "
206 "B<munlockall>, ou até que o processo termine ou inicie outro programa com "
207 "B<exec>. Processos filhos não herdam bloqueio de página através de um "
208 "B<fork>."
209
210 #. type: Plain text
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 msgid "The I<flags> argument can be either 0 or the following constant:"
214 msgstr ""
215
216 #. type: TP
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 #, no-wrap
220 msgid "B<MLOCK_ONFAULT>"
221 msgstr "B<MLOCK_ONFAULT>"
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 msgid ""
227 "Lock pages that are currently resident and mark the entire range so that the "
228 "remaining nonresident pages are locked when they are populated by a page "
229 "fault."
230 msgstr ""
231
232 #. type: Plain text
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 msgid "If I<flags> is 0, B<mlock2>() behaves exactly the same as B<mlock>()."
236 msgstr ""
237
238 #. type: Plain text
239 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
240 #: opensuse-leap-16-1 opensuse-tumbleweed
241 #, fuzzy
242 #| msgid ""
243 #| "B<mlock> disables paging for the memory in the range starting at I<addr> "
244 #| "with length I<len> bytes. All pages which contain a part of the specified "
245 #| "memory range are guaranteed be resident in RAM when the B<mlock> system "
246 #| "call returns successfully and they are guaranteed to stay in RAM until "
247 #| "the pages are unlocked by B<munlock> or B<munlockall>, or until the "
248 #| "process terminates or starts another program with B<exec>. Child "
249 #| "processes do not inherit page locks across a B<fork>."
250 msgid ""
251 "B<munlock>() unlocks pages in the address range starting at I<addr> and "
252 "continuing for I<size> bytes. After this call, all pages that contain a "
253 "part of the specified memory range can be moved to external swap space again "
254 "by the kernel."
255 msgstr ""
256 "B<mlock> desabilita a paginação para intervalos de memória iniciando em "
257 "I<addr> com comprimento de I<len> bytes. Todas as páginas que contém uma "
258 "parte do intervalo de memória especificado estão garantidas de estarem na "
259 "RAM quando a chamada de sistema B<mlock> é realizada com sucesso e permancem "
260 "assim até que as páginas sejam desbloqueadas por B<munlock> ou "
261 "B<munlockall>, ou até que o processo termine ou inicie outro programa com "
262 "B<exec>. Processos filhos não herdam bloqueio de página através de um "
263 "B<fork>."
264
265 #. type: SS
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 #, no-wrap
269 msgid "mlockall() and munlockall()"
270 msgstr "mlockall() e munlockall()"
271
272 #. type: Plain text
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 #, fuzzy
276 #| msgid ""
277 #| "B<mlock> disables paging for the memory in the range starting at I<addr> "
278 #| "with length I<len> bytes. All pages which contain a part of the specified "
279 #| "memory range are guaranteed be resident in RAM when the B<mlock> system "
280 #| "call returns successfully and they are guaranteed to stay in RAM until "
281 #| "the pages are unlocked by B<munlock> or B<munlockall>, or until the "
282 #| "process terminates or starts another program with B<exec>. Child "
283 #| "processes do not inherit page locks across a B<fork>."
284 msgid ""
285 "B<mlockall>() locks all pages mapped into the address space of the calling "
286 "process. This includes the pages of the code, data, and stack segment, as "
287 "well as shared libraries, user space kernel data, shared memory, and memory-"
288 "mapped files. All mapped pages are guaranteed to be resident in RAM when "
289 "the call returns successfully; the pages are guaranteed to stay in RAM until "
290 "later unlocked."
291 msgstr ""
292 "B<mlock> desabilita a paginação para intervalos de memória iniciando em "
293 "I<addr> com comprimento de I<len> bytes. Todas as páginas que contém uma "
294 "parte do intervalo de memória especificado estão garantidas de estarem na "
295 "RAM quando a chamada de sistema B<mlock> é realizada com sucesso e permancem "
296 "assim até que as páginas sejam desbloqueadas por B<munlock> ou "
297 "B<munlockall>, ou até que o processo termine ou inicie outro programa com "
298 "B<exec>. Processos filhos não herdam bloqueio de página através de um "
299 "B<fork>."
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 "The I<flags> argument is constructed as the bitwise OR of one or more of the "
306 "following constants:"
307 msgstr ""
308
309 #. type: TP
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, no-wrap
313 msgid "B<MCL_CURRENT>"
314 msgstr "B<MCL_CURRENT>"
315
316 #. type: Plain text
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 msgid ""
320 "Lock all pages which are currently mapped into the address space of the "
321 "process."
322 msgstr ""
323
324 #. type: TP
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 #, no-wrap
328 msgid "B<MCL_FUTURE>"
329 msgstr "B<MCL_FUTURE>"
330
331 #. type: Plain text
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 msgid ""
335 "Lock all pages which will become mapped into the address space of the "
336 "process in the future. These could be, for instance, new pages required by "
337 "a growing heap and stack as well as new memory-mapped files or shared memory "
338 "regions."
339 msgstr ""
340
341 #. type: TP
342 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
343 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
344 #, no-wrap
345 msgid "B<MCL_ONFAULT> (since Linux 4.4)"
346 msgstr ""
347
348 #. type: Plain text
349 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
350 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
351 msgid ""
352 "Used together with B<MCL_CURRENT>, B<MCL_FUTURE>, or both. Mark all current "
353 "(with B<MCL_CURRENT>) or future (with B<MCL_FUTURE>) mappings to lock "
354 "pages when they are faulted in. When used with B<MCL_CURRENT>, all present "
355 "pages are locked, but B<mlockall>() will not fault in non-present pages. "
356 "When used with B<MCL_FUTURE>, all future mappings will be marked to lock "
357 "pages when they are faulted in, but they will not be populated by the lock "
358 "when the mapping is created. B<MCL_ONFAULT> must be used with either "
359 "B<MCL_CURRENT> or B<MCL_FUTURE> or both."
360 msgstr ""
361
362 #. type: Plain text
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 msgid ""
366 "If B<MCL_FUTURE> has been specified, then a later system call (e.g., "
367 "B<mmap>(2), B<sbrk>(2), B<malloc>(3)), may fail if it would cause the number "
368 "of locked bytes to exceed the permitted maximum (see below). In the same "
369 "circumstances, stack growth may likewise fail: the kernel will deny stack "
370 "expansion and deliver a B<SIGSEGV> signal to the process."
371 msgstr ""
372
373 #. type: Plain text
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 msgid ""
377 "B<munlockall>() unlocks all pages mapped into the address space of the "
378 "calling process."
379 msgstr ""
380
381 #. type: SH
382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
384 #, no-wrap
385 msgid "RETURN VALUE"
386 msgstr "VALOR DE RETORNO"
387
388 #. type: Plain text
389 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
390 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
391 #, fuzzy
392 #| msgid ""
393 #| "On success, B<mlock> returns zero. On error, -1 is returned, I<errno> is "
394 #| "set appropriately, and no changes are made to any locks in the address "
395 #| "space of the process."
396 msgid ""
397 "On success, these system calls return 0. On error, -1 is returned, I<errno> "
398 "is set to indicate the error, and no changes are made to any locks in the "
399 "address space of the process."
400 msgstr ""
401 "Em caso de sucesso, B<mlock> devolve 0. Caso contrário, -1 é devolvido e "
402 "I<errno> é selecionado adequadamente, e não são feitas mudanças para "
403 "qualquer bloqueio no espaço de endereços do processo."
404
405 #. type: SH
406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
408 #, no-wrap
409 msgid "ERRORS"
410 msgstr "ERROS"
411
412 #. type: TP
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 #, no-wrap
416 msgid "B<EAGAIN>"
417 msgstr "B<EAGAIN>"
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<mlock>(), B<mlock2>(), and B<munlock>()) Some or all of the specified "
424 "address range could not be locked."
425 msgstr ""
426
427 #. type: TP
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 #, no-wrap
431 msgid "B<EINVAL>"
432 msgstr "B<EINVAL>"
433
434 #. type: Plain text
435 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
436 #: opensuse-leap-16-1 opensuse-tumbleweed
437 msgid ""
438 "(B<mlock>(), B<mlock2>(), and B<munlock>()) The result of the addition "
439 "I<addr>+I<size> was less than I<addr> (e.g., the addition may have resulted "
440 "in an overflow)."
441 msgstr ""
442
443 #. type: Plain text
444 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
445 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
446 msgid "(B<mlock2>()) Unknown I<flags> were specified."
447 msgstr ""
448
449 #. type: Plain text
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 msgid ""
453 "(B<mlockall>()) Unknown I<flags> were specified or B<MCL_ONFAULT> was "
454 "specified without either B<MCL_FUTURE> or B<MCL_CURRENT>."
455 msgstr ""
456
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 "(Not on Linux) I<addr> was not a multiple of the page size."
461 msgstr ""
462
463 #. type: TP
464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
466 #, no-wrap
467 msgid "B<ENOMEM>"
468 msgstr "B<ENOMEM>"
469
470 #. type: Plain text
471 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
472 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
473 #, fuzzy
474 #| msgid ""
475 #| "Some of the specified address range does not correspond to mapped pages "
476 #| "in the address space of the process or the process tried to exceed the "
477 #| "maximum number of allowed locked pages."
478 msgid ""
479 "(B<mlock>(), B<mlock2>(), and B<munlock>()) Some of the specified address "
480 "range does not correspond to mapped pages in the address space of the "
481 "process."
482 msgstr ""
483 "Alguns dos intervalos de endereços especificados não correspondem a páginas "
484 "mapeadas no espaço de endereços do processo ou o processo tentou exceder o "
485 "número máximo permitido de páginas bloqueadas."
486
487 #. I.e., the number of VMAs would exceed the 64kB maximum
488 #. type: Plain text
489 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
490 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
491 msgid ""
492 "(B<mlock>(), B<mlock2>(), and B<munlock>()) Locking or unlocking a region "
493 "would result in the total number of mappings with distinct attributes (e.g., "
494 "locked versus unlocked) exceeding the allowed maximum. (For example, "
495 "unlocking a range in the middle of a currently locked mapping would result "
496 "in three mappings: two locked mappings at each end and an unlocked mapping "
497 "in the middle.)"
498 msgstr ""
499
500 #. type: Plain text
501 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
502 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
503 msgid ""
504 "(Linux 2.6.9 and later) the caller had a nonzero B<RLIMIT_MEMLOCK> soft "
505 "resource limit, but tried to lock more memory than the limit permitted. "
506 "This limit is not enforced if the process is privileged (B<CAP_IPC_LOCK>)."
507 msgstr ""
508
509 #. In the case of mlock(), this check is somewhat buggy: it doesn't
510 #. take into account whether the to-be-locked range overlaps with
511 #. already locked pages. Thus, suppose we allocate
512 #. (num_physpages / 4 + 1) of memory, and lock those pages once using
513 #. mlock(), and then lock the *same* page range a second time.
514 #. In the case, the second mlock() call will fail, since the check
515 #. calculates that the process is trying to lock (num_physpages / 2 + 2)
516 #. pages, which of course is not true. (MTK, Nov 04, kernel 2.4.28)
517 #. type: Plain text
518 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
519 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
520 msgid ""
521 "(Linux 2.4 and earlier) the calling process tried to lock more than half of "
522 "RAM."
523 msgstr ""
524
525 #. type: TP
526 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
527 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
528 #, no-wrap
529 msgid "B<EPERM>"
530 msgstr "B<EPERM>"
531
532 #. type: Plain text
533 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
534 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
535 msgid ""
536 "The caller is not privileged, but needs privilege (B<CAP_IPC_LOCK>) to "
537 "perform the requested operation."
538 msgstr ""
539
540 #. type: Plain text
541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
543 msgid ""
544 "(B<munlockall>()) (Linux 2.6.8 and earlier) The caller was not privileged "
545 "(B<CAP_IPC_LOCK>)."
546 msgstr ""
547
548 #. type: SH
549 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
550 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
551 #, no-wrap
552 msgid "VERSIONS"
553 msgstr "VERSÕES"
554
555 #. type: SS
556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
558 #, no-wrap
559 msgid "Linux"
560 msgstr "Linux"
561
562 #. type: Plain text
563 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
564 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
565 msgid ""
566 "Under Linux, B<mlock>(), B<mlock2>(), and B<munlock>() automatically round "
567 "I<addr> down to the nearest page boundary. However, the POSIX.1 "
568 "specification of B<mlock>() and B<munlock>() allows an implementation to "
569 "require that I<addr> is page aligned, so portable applications should ensure "
570 "this."
571 msgstr ""
572
573 #. type: Plain text
574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
576 msgid ""
577 "The I<VmLck> field of the Linux-specific I</proc/>pidI</status> file shows "
578 "how many kilobytes of memory the process with ID I<PID> has locked using "
579 "B<mlock>(), B<mlock2>(), B<mlockall>(), and B<mmap>(2) B<MAP_LOCKED>."
580 msgstr ""
581
582 #. type: SH
583 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
584 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
585 #, no-wrap
586 msgid "STANDARDS"
587 msgstr "PADRÕES"
588
589 #. type: TP
590 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
591 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
592 #, fuzzy, no-wrap
593 #| msgid "For B<mlock2>():"
594 msgid "B<mlock>()"
595 msgstr "Para B<mlock2>():"
596
597 #. type: TQ
598 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
599 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
600 #, fuzzy, no-wrap
601 #| msgid "For B<munlockall>():"
602 msgid "B<munlock>()"
603 msgstr "Para B<munlockall>():"
604
605 #. type: TQ
606 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
607 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
608 #, fuzzy, no-wrap
609 #| msgid "For B<mlockall>():"
610 msgid "B<mlockall>()"
611 msgstr "Para B<mlockall>():"
612
613 #. type: TQ
614 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
615 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
616 #, fuzzy, no-wrap
617 #| msgid "For B<munlockall>():"
618 msgid "B<munlockall>()"
619 msgstr "Para B<munlockall>():"
620
621 #. type: Plain text
622 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
623 #: opensuse-tumbleweed
624 msgid "POSIX.1-2024."
625 msgstr "POSIX.1-2024."
626
627 #. type: TP
628 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
629 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
630 #, fuzzy, no-wrap
631 #| msgid "For B<mlock2>():"
632 msgid "B<mlock2>()"
633 msgstr "Para B<mlock2>():"
634
635 #. type: Plain text
636 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
637 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
638 msgid "Linux."
639 msgstr "Linux."
640
641 #. type: Plain text
642 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
643 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
644 #, fuzzy
645 #| msgid ""
646 #| "On POSIX systems on which B<mlock> and B<munlock> are available, "
647 #| "B<_POSIX_MEMLOCK_RANGE> is defined in E<lt>unistd.hE<gt> and the value "
648 #| "B<PAGESIZE> from E<lt>limits.hE<gt> indicates the number of bytes per "
649 #| "page."
650 msgid ""
651 "On POSIX systems on which B<mlock>() and B<munlock>() are available, "
652 "B<_POSIX_MEMLOCK_RANGE> is defined in I<E<lt>unistd.hE<gt>> and the number "
653 "of bytes in a page can be determined from the constant B<PAGESIZE> (if "
654 "defined) in I<E<lt>limits.hE<gt>> or by calling I<sysconf(_SC_PAGESIZE)>."
655 msgstr ""
656 "Sistemas POSIX nos quais B<mlock> e B<munlock> estão disponívies "
657 "B<_POSIX_MEMLOCK_RANGE> é definida no E<lt>unistd.hE<gt> e o valor "
658 "B<PAGESIZE> a parir E<lt>limits.hE<gt> indica o número de bytes por página."
659
660 #. POSIX.1-2001: It shall be defined to -1 or 0 or 200112L.
661 #. -1: unavailable, 0: ask using sysconf().
662 #. glibc defines it to 1.
663 #. type: Plain text
664 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
665 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
666 #, fuzzy
667 #| msgid ""
668 #| "On POSIX systems on which B<mlock> and B<munlock> are available, "
669 #| "B<_POSIX_MEMLOCK_RANGE> is defined in E<lt>unistd.hE<gt> and the value "
670 #| "B<PAGESIZE> from E<lt>limits.hE<gt> indicates the number of bytes per "
671 #| "page."
672 msgid ""
673 "On POSIX systems on which B<mlockall>() and B<munlockall>() are available, "
674 "B<_POSIX_MEMLOCK> is defined in I<E<lt>unistd.hE<gt>> to a value greater "
675 "than 0. (See also B<sysconf>(3).)"
676 msgstr ""
677 "Sistemas POSIX nos quais B<mlock> e B<munlock> estão disponívies "
678 "B<_POSIX_MEMLOCK_RANGE> é definida no E<lt>unistd.hE<gt> e o valor "
679 "B<PAGESIZE> a parir E<lt>limits.hE<gt> indica o número de bytes por página."
680
681 #. type: SH
682 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
683 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
684 #, no-wrap
685 msgid "HISTORY"
686 msgstr "HISTÓRICO"
687
688 #. type: Plain text
689 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
690 #: opensuse-tumbleweed
691 #, fuzzy
692 #| msgid "SVr4, 4.3BSD, POSIX.1-2001."
693 msgid "SVr4, POSIX.1-1996."
694 msgstr "SVr4, 4.3BSD, POSIX.1-2001."
695
696 #. type: Plain text
697 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
698 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
699 #, fuzzy
700 #| msgid "Since glibc 2.12:"
701 msgid "Linux 4.4, glibc 2.27."
702 msgstr "Desde o glibc 2.12:"
703
704 #. type: SH
705 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
706 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
707 #, no-wrap
708 msgid "NOTES"
709 msgstr "NOTAS"
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 #, fuzzy
715 #| msgid ""
716 #| "Memory locking has two main applications: real-time algorithms and high-"
717 #| "security data processing. Real-time applications require deterministic "
718 #| "timing, and, like scheduling, paging is one major cause of unexpected "
719 #| "program execution delays. Real-time applications will usually also switch "
720 #| "to a real-time scheduler with B<sched_setscheduler>. Cryptographic "
721 #| "security software often handles critical bytes like passwords or secret "
722 #| "keys as data structures. As a result of paging, these secrets could be "
723 #| "transfered onto a persistent swap store medium, where they might be "
724 #| "accessible to the enemy long after the security software has erased the "
725 #| "secrets in RAM and terminated."
726 msgid ""
727 "Memory locking has two main applications: real-time algorithms and high-"
728 "security data processing. Real-time applications require deterministic "
729 "timing, and, like scheduling, paging is one major cause of unexpected "
730 "program execution delays. Real-time applications will usually also switch "
731 "to a real-time scheduler with B<sched_setscheduler>(2). Cryptographic "
732 "security software often handles critical bytes like passwords or secret keys "
733 "as data structures. As a result of paging, these secrets could be "
734 "transferred onto a persistent swap store medium, where they might be "
735 "accessible to the enemy long after the security software has erased the "
736 "secrets in RAM and terminated. (But be aware that the suspend mode on "
737 "laptops and some desktop computers will save a copy of the system's RAM to "
738 "disk, regardless of memory locks.)"
739 msgstr ""
740 "Bloqueios de memória têm 2 aplicações principais: algoritmos em tempo real e "
741 "processamento de dados com alta segurança. Aplicações em tempo real requerem "
742 "cronometragem determinística, e, como o agendamento, paginação é a maior "
743 "causa de intervalos inesperados na execução do programa. Aplicações em tempo "
744 "real normalmente também trocarão um agendamento em tempo real com "
745 "B<sched_setscheduler>. Softwares de seguança criptográfica frequentemente "
746 "manipulam bytes críticos tais como senhas ou chaves secretas em estruturas "
747 "de dados. Como um resultado da paginação, estes segredos poderiam ser "
748 "transferidos para uma área de troca de meio de armazenamento persistente, "
749 "onde eles poderiam ficar acessíveis para o atacante depois do software de "
750 "segurança ter apagado os segredos da RAM e ter sido encerrado."
751
752 #. type: Plain text
753 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
754 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
755 msgid ""
756 "Real-time processes that are using B<mlockall>() to prevent delays on page "
757 "faults should reserve enough locked stack pages before entering the time-"
758 "critical section, so that no page fault can be caused by function calls. "
759 "This can be achieved by calling a function that allocates a sufficiently "
760 "large automatic variable (an array) and writes to the memory occupied by "
761 "this array in order to touch these stack pages. This way, enough pages will "
762 "be mapped for the stack and can be locked into RAM. The dummy writes ensure "
763 "that not even copy-on-write page faults can occur in the critical section."
764 msgstr ""
765
766 #. type: Plain text
767 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
768 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
769 msgid ""
770 "Memory locks are not inherited by a child created via B<fork>(2) and are "
771 "automatically removed (unlocked) during an B<execve>(2) or when the process "
772 "terminates. The B<mlockall>() B<MCL_FUTURE> and B<MCL_FUTURE | "
773 "MCL_ONFAULT> settings are not inherited by a child created via B<fork>(2) "
774 "and are cleared during an B<execve>(2)."
775 msgstr ""
776
777 #. type: Plain text
778 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
779 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
780 msgid ""
781 "Note that B<fork>(2) will prepare the address space for a copy-on-write "
782 "operation. The consequence is that any write access that follows will cause "
783 "a page fault that in turn may cause high latencies for a real-time process. "
784 "Therefore, it is crucial not to invoke B<fork>(2) after an B<mlockall>() "
785 "or B<mlock>() operation\\[em]not even from a thread which runs at a low "
786 "priority within a process which also has a thread running at elevated "
787 "priority."
788 msgstr ""
789
790 #. type: Plain text
791 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
792 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
793 msgid ""
794 "The memory lock on an address range is automatically removed if the address "
795 "range is unmapped via B<munmap>(2)."
796 msgstr ""
797
798 #. type: Plain text
799 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
800 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
801 msgid ""
802 "Memory locks do not stack, that is, pages which have been locked several "
803 "times by calls to B<mlock>(), B<mlock2>(), or B<mlockall>() will be "
804 "unlocked by a single call to B<munlock>() for the corresponding range or by "
805 "B<munlockall>(). Pages which are mapped to several locations or by several "
806 "processes stay locked into RAM as long as they are locked at least at one "
807 "location or by at least one process."
808 msgstr ""
809 "Memória bloqueada não é empilhada, isto é, páginas que foram bloqueadas há "
810 "muito tempo através de chamadas a B<mlock>(), B<mlock2>() ou B<mlockall>() "
811 "serão desbloqueadas por uma simples chamada B<munlock> para o intervalo "
812 "correspondente ou por B<munlockall>(). Páginas que são mapeadas para várias "
813 "localizações ou por vários processos permanecem bloqueadas na RAM contando "
814 "que elas sejam bloqueadas pelo menos a uma localizaçõa ou por um processo."
815
816 #. type: Plain text
817 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
818 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
819 msgid ""
820 "If a call to B<mlockall>() which uses the B<MCL_FUTURE> flag is followed by "
821 "another call that does not specify this flag, the changes made by the "
822 "B<MCL_FUTURE> call will be lost."
823 msgstr ""
824
825 #. type: Plain text
826 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
827 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
828 msgid ""
829 "The B<mlock2>() B<MLOCK_ONFAULT> flag and the B<mlockall>() B<MCL_ONFAULT> "
830 "flag allow efficient memory locking for applications that deal with large "
831 "mappings where only a (small) portion of pages in the mapping are touched. "
832 "In such cases, locking all of the pages in a mapping would incur a "
833 "significant penalty for memory locking."
834 msgstr ""
835
836 #. type: SS
837 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
838 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
839 #, no-wrap
840 msgid "Limits and permissions"
841 msgstr ""
842
843 #. type: Plain text
844 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
845 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
846 msgid ""
847 "In Linux 2.6.8 and earlier, a process must be privileged (B<CAP_IPC_LOCK>) "
848 "in order to lock memory and the B<RLIMIT_MEMLOCK> soft resource limit "
849 "defines a limit on how much memory the process may lock."
850 msgstr ""
851
852 #. type: Plain text
853 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
854 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
855 msgid ""
856 "Since Linux 2.6.9, no limits are placed on the amount of memory that a "
857 "privileged process can lock and the B<RLIMIT_MEMLOCK> soft resource limit "
858 "instead defines a limit on how much memory an unprivileged process may lock."
859 msgstr ""
860
861 #. type: SH
862 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
863 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
864 #, no-wrap
865 msgid "BUGS"
866 msgstr "BUGS"
867
868 #. commit 0cf2f6f6dc605e587d2c1120f295934c77e810e8
869 #. type: Plain text
870 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
871 #: opensuse-leap-16-1 opensuse-tumbleweed
872 msgid ""
873 "In Linux 4.8 and earlier, a bug in the kernel's accounting of locked memory "
874 "for unprivileged processes (i.e., without B<CAP_IPC_LOCK>) meant that if "
875 "the region specified by I<addr> and I<size> overlapped an existing lock, "
876 "then the already locked bytes in the overlapping region were counted twice "
877 "when checking against the limit. Such double accounting could incorrectly "
878 "calculate a \"total locked memory\" value for the process that exceeded the "
879 "B<RLIMIT_MEMLOCK> limit, with the result that B<mlock>() and B<mlock2>() "
880 "would fail on requests that should have succeeded. This bug was fixed in "
881 "Linux 4.9."
882 msgstr ""
883
884 #. type: Plain text
885 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
886 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
887 msgid ""
888 "In Linux 2.4 series of kernels up to and including Linux 2.4.17, a bug "
889 "caused the B<mlockall>() B<MCL_FUTURE> flag to be inherited across a "
890 "B<fork>(2). This was rectified in Linux 2.4.18."
891 msgstr ""
892
893 #. See the following LKML thread:
894 #. http://marc.theaimsgroup.com/?l=linux-kernel&m=113801392825023&w=2
895 #. "Rationale for RLIMIT_MEMLOCK"
896 #. 23 Jan 2006
897 #. type: Plain text
898 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
899 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
900 msgid ""
901 "Since Linux 2.6.9, if a privileged process calls I<mlockall(MCL_FUTURE)> and "
902 "later drops privileges (loses the B<CAP_IPC_LOCK> capability by, for "
903 "example, setting its effective UID to a nonzero value), then subsequent "
904 "memory allocations (e.g., B<mmap>(2), B<brk>(2)) will fail if the "
905 "B<RLIMIT_MEMLOCK> resource limit is encountered."
906 msgstr ""
907
908 #. type: SH
909 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
910 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
911 #, no-wrap
912 msgid "SEE ALSO"
913 msgstr "VEJA TAMBÉM"
914
915 #. type: Plain text
916 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
917 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
918 msgid ""
919 "B<mincore>(2), B<mmap>(2), B<setrlimit>(2), B<shmctl>(2), B<sysconf>(3), "
920 "B<proc>(5), B<capabilities>(7)"
921 msgstr ""
922 "B<mincore>(2), B<mmap>(2), B<setrlimit>(2), B<shmctl>(2), B<sysconf>(3), "
923 "B<proc>(5), B<capabilities>(7)"
924
925 #. type: TH
926 #: debian-trixie
927 #, no-wrap
928 msgid "2024-05-02"
929 msgstr "2 maio 2024"
930
931 #. type: TH
932 #: debian-trixie
933 #, no-wrap
934 msgid "Linux man-pages 6.9.1"
935 msgstr "Linux man-pages 6.9.1"
936
937 #. type: Plain text
938 #: debian-trixie
939 msgid "Standard C library (I<libc>, I<-lc>)"
940 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
941
942 #. type: Plain text
943 #: debian-trixie
944 #, fuzzy, no-wrap
945 #| msgid ""
946 #| "B<int mlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
947 #| "B<int mlock2(const void *>I<addr>B<, size_t >I<len>B<, int >I<flags>B<);>\n"
948 #| "B<int munlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
949 msgid ""
950 "B<int mlock(const void >I<addr>B<[.>I<len>B<], size_t >I<len>B<);>\n"
951 "B<int mlock2(const void >I<addr>B<[.>I<len>B<], size_t >I<len>B<, unsigned int >I<flags>B<);>\n"
952 "B<int munlock(const void >I<addr>B<[.>I<len>B<], size_t >I<len>B<);>\n"
953 msgstr ""
954 "B<int mlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
955 "B<int mlock2(const void *>I<addr>B<, size_t >I<len>B<, int >I<flags>B<);>\n"
956 "B<int munlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
957
958 #. type: Plain text
959 #: debian-trixie
960 #, fuzzy
961 #| msgid ""
962 #| "B<mlock> disables paging for the memory in the range starting at I<addr> "
963 #| "with length I<len> bytes. All pages which contain a part of the specified "
964 #| "memory range are guaranteed be resident in RAM when the B<mlock> system "
965 #| "call returns successfully and they are guaranteed to stay in RAM until "
966 #| "the pages are unlocked by B<munlock> or B<munlockall>, or until the "
967 #| "process terminates or starts another program with B<exec>. Child "
968 #| "processes do not inherit page locks across a B<fork>."
969 msgid ""
970 "B<mlock>() locks pages in the address range starting at I<addr> and "
971 "continuing for I<len> bytes. All pages that contain a part of the specified "
972 "address range are guaranteed to be resident in RAM when the call returns "
973 "successfully; the pages are guaranteed to stay in RAM until later unlocked."
974 msgstr ""
975 "B<mlock> desabilita a paginação para intervalos de memória iniciando em "
976 "I<addr> com comprimento de I<len> bytes. Todas as páginas que contém uma "
977 "parte do intervalo de memória especificado estão garantidas de estarem na "
978 "RAM quando a chamada de sistema B<mlock> é realizada com sucesso e permancem "
979 "assim até que as páginas sejam desbloqueadas por B<munlock> ou "
980 "B<munlockall>, ou até que o processo termine ou inicie outro programa com "
981 "B<exec>. Processos filhos não herdam bloqueio de página através de um "
982 "B<fork>."
983
984 #. commit a8ca5d0ecbdde5cc3d7accacbd69968b0c98764e
985 #. commit de60f5f10c58d4f34b68622442c0e04180367f3f
986 #. commit b0f205c2a3082dd9081f9a94e50658c5fa906ff1
987 #. type: Plain text
988 #: debian-trixie
989 msgid ""
990 "B<mlock2>() also locks pages in the specified range starting at I<addr> and "
991 "continuing for I<len> bytes. However, the state of the pages contained in "
992 "that range after the call returns successfully will depend on the value in "
993 "the I<flags> argument."
994 msgstr ""
995
996 #. type: Plain text
997 #: debian-trixie
998 msgid ""
999 "B<munlock>() unlocks pages in the address range starting at I<addr> and "
1000 "continuing for I<len> bytes. After this call, all pages that contain a part "
1001 "of the specified memory range can be moved to external swap space again by "
1002 "the kernel."
1003 msgstr ""
1004
1005 #. type: Plain text
1006 #: debian-trixie
1007 msgid ""
1008 "(B<mlock>(), B<mlock2>(), and B<munlock>()) The result of the addition "
1009 "I<addr>+I<len> was less than I<addr> (e.g., the addition may have resulted "
1010 "in an overflow)."
1011 msgstr ""
1012
1013 #. type: Plain text
1014 #: debian-trixie fedora-44 fedora-rawhide
1015 msgid "POSIX.1-2008."
1016 msgstr "POSIX.1-2008."
1017
1018 #. type: Plain text
1019 #: debian-trixie fedora-44 fedora-rawhide
1020 msgid "POSIX.1-2001, POSIX.1-2008, SVr4."
1021 msgstr "POSIX.1-2001, POSIX.1-2008, SVr4."
1022
1023 #. commit 0cf2f6f6dc605e587d2c1120f295934c77e810e8
1024 #. type: Plain text
1025 #: debian-trixie
1026 msgid ""
1027 "In Linux 4.8 and earlier, a bug in the kernel's accounting of locked memory "
1028 "for unprivileged processes (i.e., without B<CAP_IPC_LOCK>) meant that if "
1029 "the region specified by I<addr> and I<len> overlapped an existing lock, then "
1030 "the already locked bytes in the overlapping region were counted twice when "
1031 "checking against the limit. Such double accounting could incorrectly "
1032 "calculate a \"total locked memory\" value for the process that exceeded the "
1033 "B<RLIMIT_MEMLOCK> limit, with the result that B<mlock>() and B<mlock2>() "
1034 "would fail on requests that should have succeeded. This bug was fixed in "
1035 "Linux 4.9."
1036 msgstr ""
1037
1038 #. type: TH
1039 #: fedora-44 fedora-rawhide
1040 #, no-wrap
1041 msgid "2024-11-17"
1042 msgstr "17 novembro 2024"
1043
1044 #. type: TH
1045 #: fedora-44 fedora-rawhide
1046 #, no-wrap
1047 msgid "Linux man-pages 6.13"
1048 msgstr "Linux man-pages 6.13"
1049
1050 #. type: Plain text
1051 #: fedora-44 fedora-rawhide
1052 #, fuzzy, no-wrap
1053 #| msgid ""
1054 #| "B<int mlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
1055 #| "B<int mlock2(const void *>I<addr>B<, size_t >I<len>B<, int >I<flags>B<);>\n"
1056 #| "B<int munlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
1057 msgid ""
1058 "B<int mlock(const void >I<addr>B<[.>I<size>B<], size_t >I<size>B<);>\n"
1059 "B<int mlock2(const void >I<addr>B<[.>I<size>B<], size_t >I<size>B<, unsigned int >I<flags>B<);>\n"
1060 "B<int munlock(const void >I<addr>B<[.>I<size>B<], size_t >I<size>B<);>\n"
1061 msgstr ""
1062 "B<int mlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
1063 "B<int mlock2(const void *>I<addr>B<, size_t >I<len>B<, int >I<flags>B<);>\n"
1064 "B<int munlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
1065
1066 #. type: TH
1067 #: mageia-cauldron
1068 #, no-wrap
1069 msgid "Linux man-pages 6.17"
1070 msgstr "Linux man-pages 6.17"
1071
1072 #. type: TH
1073 #: opensuse-leap-16-1 opensuse-tumbleweed
1074 #, no-wrap
1075 msgid "Linux man-pages (unreleased)"
1076 msgstr "Linux man-pages (não lançado)"