Debian Codegraph @

templates/man2/shmget.2.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:43+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "shmget"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "shmget - allocates a System V shared memory segment"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr ""
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr ""
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "B<#include E<lt>sys/shm.hE<gt>>\n"
77 msgstr ""
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "B<int shmget(key_t >I<key>B<, size_t >I<size>B<, int >I<shmflg>B<);>\n"
84 msgstr ""
85
86 #. type: SH
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid "DESCRIPTION"
91 msgstr ""
92
93 #. type: Plain text
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 msgid ""
97 "B<shmget>() returns the identifier of the System\\ V shared memory segment "
98 "associated with the value of the argument I<key>. It may be used either to "
99 "obtain the identifier of a previously created shared memory segment (when "
100 "I<shmflg> is zero and I<key> does not have the value B<IPC_PRIVATE>), or to "
101 "create a new set."
102 msgstr ""
103
104 #. type: Plain text
105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
107 msgid ""
108 "A new shared memory segment, with size equal to the value of I<size> rounded "
109 "up to a multiple of B<PAGE_SIZE>, is created if I<key> has the value "
110 "B<IPC_PRIVATE> or I<key> isn't B<IPC_PRIVATE>, no shared memory segment "
111 "corresponding to I<key> exists, and B<IPC_CREAT> is specified in I<shmflg>."
112 msgstr ""
113
114 #. type: Plain text
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 msgid ""
118 "If I<shmflg> specifies both B<IPC_CREAT> and B<IPC_EXCL> and a shared memory "
119 "segment already exists for I<key>, then B<shmget>() fails with I<errno> set "
120 "to B<EEXIST>. (This is analogous to the effect of the combination B<O_CREAT "
121 "| O_EXCL> for B<open>(2).)"
122 msgstr ""
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 msgid "The value I<shmflg> is composed of:"
128 msgstr ""
129
130 #. type: TP
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 #, no-wrap
134 msgid "B<IPC_CREAT>"
135 msgstr ""
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 msgid ""
141 "Create a new segment. If this flag is not used, then B<shmget>() will find "
142 "the segment associated with I<key> and check to see if the user has "
143 "permission to access the segment."
144 msgstr ""
145
146 #. type: TP
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 #, no-wrap
150 msgid "B<IPC_EXCL>"
151 msgstr ""
152
153 #. type: Plain text
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 msgid ""
157 "This flag is used with B<IPC_CREAT> to ensure that this call creates the "
158 "segment. If the segment already exists, the call fails."
159 msgstr ""
160
161 #. type: TP
162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
164 #, no-wrap
165 msgid "B<SHM_HUGETLB> (since Linux 2.6)"
166 msgstr ""
167
168 #. type: Plain text
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 msgid ""
172 "Allocate the segment using \"huge\" pages. See the Linux kernel source file "
173 "I<Documentation/admin-guide/mm/hugetlbpage.rst> for further information."
174 msgstr ""
175
176 #. type: TP
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 #, no-wrap
180 msgid "B<SHM_HUGE_2MB>"
181 msgstr ""
182
183 #. type: TQ
184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
186 #, no-wrap
187 msgid "B<SHM_HUGE_1GB> (since Linux 3.8)"
188 msgstr ""
189
190 #. See https://lwn.net/Articles/533499/
191 #. type: Plain text
192 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
193 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
194 msgid ""
195 "Used in conjunction with B<SHM_HUGETLB> to select alternative hugetlb page "
196 "sizes (respectively, 2\\ MB and 1\\ GB) on systems that support multiple "
197 "hugetlb page sizes."
198 msgstr ""
199
200 #. type: Plain text
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 msgid ""
204 "More generally, the desired huge page size can be configured by encoding the "
205 "base-2 logarithm of the desired page size in the six bits at the offset "
206 "B<SHM_HUGE_SHIFT>. Thus, the above two constants are defined as:"
207 msgstr ""
208
209 #. type: Plain text
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 #, no-wrap
213 msgid ""
214 "#define SHM_HUGE_2MB (21 E<lt>E<lt> SHM_HUGE_SHIFT)\n"
215 "#define SHM_HUGE_1GB (30 E<lt>E<lt> SHM_HUGE_SHIFT)\n"
216 msgstr ""
217
218 #. type: Plain text
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 msgid ""
222 "For some additional details, see the discussion of the similarly named "
223 "constants in B<mmap>(2)."
224 msgstr ""
225
226 #. type: TP
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 #, no-wrap
230 msgid "B<SHM_NORESERVE> (since Linux 2.6.15)"
231 msgstr ""
232
233 #. As at 2.6.17-rc2, this flag has no effect if SHM_HUGETLB was also
234 #. specified.
235 #. type: Plain text
236 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
237 #: opensuse-tumbleweed
238 msgid ""
239 "This flag serves the same purpose as the B<mmap>(2) B<MAP_NORESERVE> flag. "
240 "Do not reserve swap space for this segment. When swap space is reserved, "
241 "one has the guarantee that it is possible to modify the segment. When swap "
242 "space is not reserved one might get B<SIGSEGV> upon a write if no physical "
243 "memory is available. See also the discussion of the file I</proc/sys/vm/"
244 "overcommit_memory> in B<proc_sys_vm>(5)."
245 msgstr ""
246
247 #. type: Plain text
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 msgid ""
251 "In addition to the above flags, the least significant 9 bits of I<shmflg> "
252 "specify the permissions granted to the owner, group, and others. These bits "
253 "have the same format, and the same meaning, as the I<mode> argument of "
254 "B<open>(2). Presently, execute permissions are not used by the system."
255 msgstr ""
256
257 #. type: Plain text
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 msgid ""
261 "When a new shared memory segment is created, its contents are initialized to "
262 "zero values, and its associated data structure, I<shmid_ds> (see "
263 "B<shmctl>(2)), is initialized as follows:"
264 msgstr ""
265
266 #. type: IP
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 #, no-wrap
270 msgid "\\[bu]"
271 msgstr ""
272
273 #. type: Plain text
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 msgid ""
277 "I<shm_perm.cuid> and I<shm_perm.uid> are set to the effective user ID of the "
278 "calling process."
279 msgstr ""
280
281 #. type: Plain text
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 msgid ""
285 "I<shm_perm.cgid> and I<shm_perm.gid> are set to the effective group ID of "
286 "the calling process."
287 msgstr ""
288
289 #. type: Plain text
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 msgid ""
293 "The least significant 9 bits of I<shm_perm.mode> are set to the least "
294 "significant 9 bit of I<shmflg>."
295 msgstr ""
296
297 #. type: Plain text
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 msgid "I<shm_segsz> is set to the value of I<size>."
301 msgstr ""
302
303 #. type: Plain text
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 msgid ""
307 "I<shm_lpid>, I<shm_nattch>, I<shm_atime>, and I<shm_dtime> are set to 0."
308 msgstr ""
309
310 #. type: Plain text
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 msgid "I<shm_ctime> is set to the current time."
314 msgstr ""
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 "If the shared memory segment already exists, the permissions are verified, "
321 "and a check is made to see if it is marked for destruction."
322 msgstr ""
323
324 #. type: SH
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 #, no-wrap
328 msgid "RETURN VALUE"
329 msgstr ""
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 "On success, a valid shared memory identifier is returned. On error, -1 is "
336 "returned, and I<errno> is set to indicate the error."
337 msgstr ""
338
339 #. type: SH
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 #, no-wrap
343 msgid "ERRORS"
344 msgstr ""
345
346 #. type: TP
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 #, no-wrap
350 msgid "B<EACCES>"
351 msgstr ""
352
353 #. type: Plain text
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 msgid ""
357 "The user does not have permission to access the shared memory segment, and "
358 "does not have the B<CAP_IPC_OWNER> capability in the user namespace that "
359 "governs its IPC namespace."
360 msgstr ""
361
362 #. type: TP
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 #, no-wrap
366 msgid "B<EEXIST>"
367 msgstr ""
368
369 #. type: Plain text
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 msgid ""
373 "B<IPC_CREAT> and B<IPC_EXCL> were specified in I<shmflg>, but a shared "
374 "memory segment already exists for I<key>."
375 msgstr ""
376
377 #. type: TP
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 #, no-wrap
381 msgid "B<EINVAL>"
382 msgstr ""
383
384 #. type: Plain text
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 msgid ""
388 "A new segment was to be created and I<size> is less than B<SHMMIN> or "
389 "greater than B<SHMMAX>."
390 msgstr ""
391
392 #. type: Plain text
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 msgid ""
396 "A segment for the given I<key> exists, but I<size> is greater than the size "
397 "of that segment."
398 msgstr ""
399
400 #. type: TP
401 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
402 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
403 #, no-wrap
404 msgid "B<ENFILE>"
405 msgstr ""
406
407 #. [2.6.7] shmem_zero_setup()-->shmem_file_setup()-->get_empty_filp()
408 #. type: Plain text
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 msgid ""
412 "The system-wide limit on the total number of open files has been reached."
413 msgstr ""
414
415 #. type: TP
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 #, no-wrap
419 msgid "B<ENOENT>"
420 msgstr ""
421
422 #. type: Plain text
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 msgid ""
426 "No segment exists for the given I<key>, and B<IPC_CREAT> was not specified."
427 msgstr ""
428
429 #. type: TP
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid "B<ENOMEM>"
434 msgstr ""
435
436 #. type: Plain text
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 msgid "No memory could be allocated for segment overhead."
440 msgstr ""
441
442 #. type: TP
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 #, no-wrap
446 msgid "B<ENOSPC>"
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 "All possible shared memory IDs have been taken (B<SHMMNI>), or allocating a "
454 "segment of the requested I<size> would cause the system to exceed the system-"
455 "wide limit on shared memory (B<SHMALL>)."
456 msgstr ""
457
458 #. type: TP
459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
461 #, no-wrap
462 msgid "B<EPERM>"
463 msgstr ""
464
465 #. type: Plain text
466 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
467 #: opensuse-tumbleweed
468 msgid ""
469 "The B<SHM_HUGETLB> flag was specified, but the caller was not privileged "
470 "(did not have the B<CAP_IPC_LOCK> capability) and is not a member of the "
471 "I<hugetlb_shm_group> group; see the description of I</proc/sys/vm/"
472 "hugetlb_shm_group> in B<proc_sys_vm>(5)."
473 msgstr ""
474
475 #. type: SH
476 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
477 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
478 #, no-wrap
479 msgid "STANDARDS"
480 msgstr ""
481
482 #. type: Plain text
483 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
484 #: opensuse-tumbleweed
485 msgid "POSIX.1-2024."
486 msgstr ""
487
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 "B<SHM_HUGETLB> and B<SHM_NORESERVE> are Linux extensions."
492 msgstr ""
493
494 #. type: SH
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 #, no-wrap
498 msgid "HISTORY"
499 msgstr ""
500
501 #. SVr4 documents an additional error condition EEXIST.
502 #. type: Plain text
503 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
504 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
505 msgid "POSIX.1-2001, SVr4."
506 msgstr ""
507
508 #. type: SH
509 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
510 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
511 #, no-wrap
512 msgid "NOTES"
513 msgstr ""
514
515 #. type: Plain text
516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
518 msgid ""
519 "B<IPC_PRIVATE> isn't a flag field but a I<key_t> type. If this special "
520 "value is used for I<key>, the system call ignores all but the least "
521 "significant 9 bits of I<shmflg> and creates a new shared memory segment."
522 msgstr ""
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 "Shared memory limits"
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 "The following limits on shared memory segment resources affect the "
536 "B<shmget>() call:"
537 msgstr ""
538
539 #. type: TP
540 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
541 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
542 #, no-wrap
543 msgid "B<SHMALL>"
544 msgstr ""
545
546 #. type: Plain text
547 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
548 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
549 msgid ""
550 "System-wide limit on the total amount of shared memory, measured in units of "
551 "the system page size."
552 msgstr ""
553
554 #. commit 060028bac94bf60a65415d1d55a359c3a17d5c31
555 #. type: Plain text
556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
558 msgid ""
559 "On Linux, this limit can be read and modified via I</proc/sys/kernel/"
560 "shmall>. Since Linux 3.16, the default value for this limit is:"
561 msgstr ""
562
563 #. type: Plain text
564 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
565 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
566 #, no-wrap
567 msgid "ULONG_MAX - 2\\[ha]24\n"
568 msgstr ""
569
570 #. type: Plain text
571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
573 msgid ""
574 "The effect of this value (which is suitable for both 32-bit and 64-bit "
575 "systems) is to impose no limitation on allocations. This value, rather "
576 "than B<ULONG_MAX>, was chosen as the default to prevent some cases where "
577 "historical applications simply raised the existing limit without first "
578 "checking its current value. Such applications would cause the value to "
579 "overflow if the limit was set at B<ULONG_MAX>."
580 msgstr ""
581
582 #. type: Plain text
583 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
584 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
585 msgid "From Linux 2.4 up to Linux 3.15, the default value for this limit was:"
586 msgstr ""
587
588 #. type: Plain text
589 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
590 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
591 #, no-wrap
592 msgid "SHMMAX / PAGE_SIZE * (SHMMNI / 16)\n"
593 msgstr ""
594
595 #. type: Plain text
596 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
597 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
598 msgid ""
599 "If B<SHMMAX> and B<SHMMNI> were not modified, then multiplying the result of "
600 "this formula by the page size (to get a value in bytes) yielded a value of "
601 "8\\ GB as the limit on the total memory used by all shared memory segments."
602 msgstr ""
603
604 #. type: TP
605 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
606 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
607 #, no-wrap
608 msgid "B<SHMMAX>"
609 msgstr ""
610
611 #. type: Plain text
612 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
613 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
614 msgid "Maximum size in bytes for a shared memory segment."
615 msgstr ""
616
617 #. commit 060028bac94bf60a65415d1d55a359c3a17d5c31
618 #. type: Plain text
619 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
620 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
621 msgid ""
622 "On Linux, this limit can be read and modified via I</proc/sys/kernel/"
623 "shmmax>. Since Linux 3.16, the default value for this limit is:"
624 msgstr ""
625
626 #. type: Plain text
627 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
628 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
629 msgid ""
630 "The effect of this value (which is suitable for both 32-bit and 64-bit "
631 "systems) is to impose no limitation on allocations. See the description of "
632 "B<SHMALL> for a discussion of why this default value (rather than "
633 "B<ULONG_MAX>) is used."
634 msgstr ""
635
636 #. type: Plain text
637 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
638 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
639 msgid ""
640 "From Linux 2.2 up to Linux 3.15, the default value of this limit was "
641 "0x2000000 (32\\ MiB)."
642 msgstr ""
643
644 #. type: Plain text
645 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
646 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
647 msgid ""
648 "Because it is not possible to map just part of a shared memory segment, the "
649 "amount of virtual memory places another limit on the maximum size of a "
650 "usable segment: for example, on i386 the largest segments that can be mapped "
651 "have a size of around 2.8\\ GB, and on x86-64 the limit is around 127 TB."
652 msgstr ""
653
654 #. type: TP
655 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
656 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
657 #, no-wrap
658 msgid "B<SHMMIN>"
659 msgstr ""
660
661 #. type: Plain text
662 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
663 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
664 msgid ""
665 "Minimum size in bytes for a shared memory segment: implementation dependent "
666 "(currently 1 byte, though B<PAGE_SIZE> is the effective minimum size)."
667 msgstr ""
668
669 #. type: TP
670 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
671 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
672 #, no-wrap
673 msgid "B<SHMMNI>"
674 msgstr ""
675
676 #. type: Plain text
677 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
678 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
679 msgid ""
680 "System-wide limit on the number of shared memory segments. In Linux 2.2, "
681 "the default value for this limit was 128; since Linux 2.4, the default value "
682 "is 4096."
683 msgstr ""
684
685 #. Kernels between Linux 2.4.x and Linux 2.6.8 had an off-by-one error
686 #. that meant that we could create one more segment than SHMMNI -- MTK
687 #. This /proc file is not available in Linux 2.2 and earlier -- MTK
688 #. type: Plain text
689 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
690 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
691 msgid ""
692 "On Linux, this limit can be read and modified via I</proc/sys/kernel/shmmni>."
693 msgstr ""
694
695 #. type: Plain text
696 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
697 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
698 msgid ""
699 "The implementation has no specific limits for the per-process maximum number "
700 "of shared memory segments (B<SHMSEG>)."
701 msgstr ""
702
703 #. type: SS
704 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
705 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
706 #, no-wrap
707 msgid "Linux notes"
708 msgstr ""
709
710 #. type: Plain text
711 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
712 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
713 msgid ""
714 "Until Linux 2.3.30, Linux would return B<EIDRM> for a B<shmget>() on a "
715 "shared memory segment scheduled for deletion."
716 msgstr ""
717
718 #. type: SH
719 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
720 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
721 #, no-wrap
722 msgid "BUGS"
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 "The name choice B<IPC_PRIVATE> was perhaps unfortunate, B<IPC_NEW> would "
730 "more clearly show its function."
731 msgstr ""
732
733 #. type: SH
734 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
735 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
736 #, no-wrap
737 msgid "EXAMPLES"
738 msgstr ""
739
740 #. type: Plain text
741 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
742 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
743 msgid "See B<shmop>(2)."
744 msgstr ""
745
746 #. type: SH
747 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
748 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
749 #, no-wrap
750 msgid "SEE ALSO"
751 msgstr ""
752
753 #. type: Plain text
754 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
755 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
756 msgid ""
757 "B<memfd_create>(2), B<shmat>(2), B<shmctl>(2), B<shmdt>(2), B<ftok>(3), "
758 "B<capabilities>(7), B<shm_overview>(7), B<sysvipc>(7)"
759 msgstr ""
760
761 #. type: TH
762 #: debian-trixie
763 #, no-wrap
764 msgid "2024-05-02"
765 msgstr ""
766
767 #. type: TH
768 #: debian-trixie
769 #, no-wrap
770 msgid "Linux man-pages 6.9.1"
771 msgstr ""
772
773 #. type: Plain text
774 #: debian-trixie
775 msgid "Standard C library (I<libc>, I<-lc>)"
776 msgstr ""
777
778 #. As at 2.6.17-rc2, this flag has no effect if SHM_HUGETLB was also
779 #. specified.
780 #. type: Plain text
781 #: debian-trixie fedora-44 fedora-rawhide
782 msgid ""
783 "This flag serves the same purpose as the B<mmap>(2) B<MAP_NORESERVE> flag. "
784 "Do not reserve swap space for this segment. When swap space is reserved, "
785 "one has the guarantee that it is possible to modify the segment. When swap "
786 "space is not reserved one might get B<SIGSEGV> upon a write if no physical "
787 "memory is available. See also the discussion of the file I</proc/sys/vm/"
788 "overcommit_memory> in B<proc>(5)."
789 msgstr ""
790
791 #. type: Plain text
792 #: debian-trixie fedora-44 fedora-rawhide
793 msgid ""
794 "The B<SHM_HUGETLB> flag was specified, but the caller was not privileged "
795 "(did not have the B<CAP_IPC_LOCK> capability) and is not a member of the "
796 "I<sysctl_hugetlb_shm_group> group; see the description of I</proc/sys/vm/"
797 "sysctl_hugetlb_shm_group> in B<proc>(5)."
798 msgstr ""
799
800 #. type: Plain text
801 #: debian-trixie fedora-44 fedora-rawhide
802 msgid "POSIX.1-2008."
803 msgstr ""
804
805 #. type: TH
806 #: fedora-44 fedora-rawhide
807 #, no-wrap
808 msgid "2024-07-23"
809 msgstr ""
810
811 #. type: TH
812 #: fedora-44 fedora-rawhide
813 #, no-wrap
814 msgid "Linux man-pages 6.13"
815 msgstr ""
816
817 #. type: TH
818 #: mageia-cauldron
819 #, no-wrap
820 msgid "Linux man-pages 6.17"
821 msgstr ""
822
823 #. type: TH
824 #: opensuse-leap-16-1 opensuse-tumbleweed
825 #, no-wrap
826 msgid "Linux man-pages (unreleased)"
827 msgstr ""