Debian Codegraph @

po/fr/man2/membarrier.2.po

raw
1 # French translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003.
5 # Stéphan Rafin <[email protected]>, 2002.
6 # Thierry Vignaud <[email protected]>, 1999,2002.
7 # François Micaux, 2002.
8 # Alain Portal <[email protected]>, 2003-2008.
9 # Jean-Philippe Guérard <[email protected]>, 2005-2006.
10 # Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007.
11 # Julien Cristau <[email protected]>, 2006-2007.
12 # Thomas Huriaux <[email protected]>, 2006-2008.
13 # Nicolas François <[email protected]>, 2006-2008.
14 # Florentin Duneau <[email protected]>, 2006-2010.
15 # Simon Paillard <[email protected]>, 2006, 2012-2014.
16 # Denis Barbier <[email protected]>, 2006,2010.
17 # David Prévot <[email protected]>, 2010-2014.
18 # Jean-Philippe MENGUAL <[email protected]>, 2020-2024.
19 msgid ""
20 msgstr ""
21 "Project-Id-Version: manpages-l10n\n"
22 "POT-Creation-Date: 2026-06-05 06:30+0200\n"
23 "PO-Revision-Date: 2024-01-31 18:50+0100\n"
24 "Last-Translator: Jean-Philippe MENGUAL <[email protected]>\n"
25 "Language-Team: French <[email protected]>\n"
26 "Language: fr\n"
27 "MIME-Version: 1.0\n"
28 "Content-Type: text/plain; charset=UTF-8\n"
29 "Content-Transfer-Encoding: 8bit\n"
30 "Plural-Forms: nplurals=2; plural=n > 1;\n"
31 "X-Generator: Lokalize 22.12.1\n"
32
33 #. type: TH
34 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
35 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
36 #, no-wrap
37 msgid "membarrier"
38 msgstr "membarrier"
39
40 #. type: TH
41 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
42 #: opensuse-tumbleweed
43 #, no-wrap
44 msgid "2025-09-21"
45 msgstr "21 septembre 2025"
46
47 #. type: TH
48 #: archlinux debian-unstable
49 #, no-wrap
50 msgid "Linux man-pages 6.18"
51 msgstr "Pages du manuel de Linux 6.18"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "NAME"
58 msgstr "NOM"
59
60 #. type: Plain text
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "membarrier - issue memory barriers on a set of threads"
64 msgstr "membarrier - Poser des barrières mémoire sur un ensemble de threads"
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "LIBRARY"
71 msgstr "BIBLIOTHÈQUE"
72
73 #. type: Plain text
74 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
75 #: opensuse-leap-16-1 opensuse-tumbleweed
76 msgid "Standard C library (I<libc>,\\ I<-lc>)"
77 msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)"
78
79 #. type: SH
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "SYNOPSIS"
84 msgstr "SYNOPSIS"
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid ""
91 "B<#include E<lt>linux/membarrier.hE<gt>> /* Definition of B<MEMBARRIER_*> constants */\n"
92 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
93 "B<#include E<lt>unistd.hE<gt>>\n"
94 msgstr ""
95 "B<#include E<lt>linux/membarrier.hE<gt>> /* Définition des constantes B<MEMBARRIER_*> */\n"
96 "B<#include E<lt>sys/syscall.hE<gt>> /* Définition des constantes B<SYS_*> */\n"
97 "B<#include E<lt>unistd.hE<gt>>\n"
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 #, no-wrap
103 msgid "B<int syscall(SYS_membarrier, int >I<cmd>B<, unsigned int >I<flags>B<, int >I<cpu_id>B<);>\n"
104 msgstr "B<int syscall(SYS_membarrier, int >I<cmd>B<, unsigned int >I<flags>B<, int >I<cpu_id>B<);>\n"
105
106 #. type: Plain text
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 msgid ""
110 "I<Note>: glibc provides no wrapper for B<membarrier>(), necessitating the "
111 "use of B<syscall>(2)."
112 msgstr ""
113 "I<Note> : la glibc ne fournit pas de fonction d'enveloppe pour "
114 "B<membarrier>(), nécessitant l'utilisation de B<syscall>(2)."
115
116 #. type: SH
117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
119 #, no-wrap
120 msgid "DESCRIPTION"
121 msgstr "DESCRIPTION"
122
123 #. type: Plain text
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 msgid ""
127 "The B<membarrier>() system call helps reducing the overhead of the memory "
128 "barrier instructions required to order memory accesses on multi-core "
129 "systems. However, this system call is heavier than a memory barrier, so "
130 "using it effectively is I<not> as simple as replacing memory barriers with "
131 "this system call, but requires understanding of the details below."
132 msgstr ""
133 "L'appel système B<membarrier>() aide à réduire le temps-système des "
134 "instructions de barrières mémoire nécessaire pour organiser les accès à la "
135 "mémoire sur des systèmes à plusieurs cœurs. Cependant, cet appel système est "
136 "plus lourd qu'une barrière mémoire, donc l'utiliser efficacement «I< n'est "
137 "pas >» aussi simple que de remplacer une barrière mémoire par cet appel "
138 "système, mais nécessite de comprendre les détails ci-dessous."
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 msgid ""
144 "Use of memory barriers needs to be done taking into account that a memory "
145 "barrier always needs to be either matched with its memory barrier "
146 "counterparts, or that the architecture's memory model doesn't require the "
147 "matching barriers."
148 msgstr ""
149 "L'utilisation de barrières mémoire doit se faire en tenant compte du fait "
150 "qu'elles doivent soit être associées avec leurs homologues, ou que le modèle "
151 "de mémoire de l'architecture n'a pas besoin de barrières associées."
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 "There are cases where one side of the matching barriers (which we will refer "
158 "to as \"fast side\") is executed much more often than the other (which we "
159 "will refer to as \"slow side\"). This is a prime target for the use of "
160 "B<membarrier>(). The key idea is to replace, for these matching barriers, "
161 "the fast-side memory barriers by simple compiler barriers, for example:"
162 msgstr ""
163 "Dans certains cas, une face des barrières associées (qu'on appellera la "
164 "« face rapide ») est sollicitée beaucoup plus souvent que l'autre (qu'on "
165 "appellera la « face lente »). C'est le motif principal pour utiliser "
166 "B<membarrier>(). L'idée clé est de remplacer, pour ces barrières associées, "
167 "les barrières mémoire de la face rapide par de simples barrières du "
168 "compilateur, par exemple :"
169
170 #. type: Plain text
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 #, no-wrap
174 msgid "asm volatile (\"\" : : : \"memory\")\n"
175 msgstr "asm volatile (\"\" : : : \"memory\")\n"
176
177 #. type: Plain text
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 msgid "and replace the slow-side memory barriers by calls to B<membarrier>()."
181 msgstr ""
182 "et de remplacer les barrières mémoire de la face lente par des appels à "
183 "B<membarrier>()."
184
185 #. type: Plain text
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 msgid ""
189 "This will add overhead to the slow side, and remove overhead from the fast "
190 "side, thus resulting in an overall performance increase as long as the slow "
191 "side is infrequent enough that the overhead of the B<membarrier>() calls "
192 "does not outweigh the performance gain on the fast side."
193 msgstr ""
194 "Cela ajoutera du temps-système à la face lente et en supprimera de la face "
195 "rapide, d'où une augmentation globale de performances tant que la face lente "
196 "est si peu utilisée que le temps-système d'appels B<membarrier>() ne "
197 "l’emporte pas sur le gain de performance de la face rapide."
198
199 #. type: Plain text
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 msgid "The I<cmd> argument is one of the following:"
203 msgstr "Le paramètre I<cmd> est l'un des suivants :"
204
205 #. type: TP
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 #, no-wrap
209 msgid "B<MEMBARRIER_CMD_QUERY> (since Linux 4.3)"
210 msgstr "B<MEMBARRIER_CMD_QUERY> (depuis Linux 4.3)"
211
212 #. type: Plain text
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 msgid ""
216 "Query the set of supported commands. The return value of the call is a bit "
217 "mask of supported commands. B<MEMBARRIER_CMD_QUERY>, which has the value 0, "
218 "is not itself included in this bit mask. This command is always supported "
219 "(on kernels where B<membarrier>() is provided)."
220 msgstr ""
221 "Rechercher l'ensemble des commandes prises en charge. Le code de retour de "
222 "l'appel est un masque de bits des commandes prises en charge. "
223 "B<MEMBARRIER_CMD_QUERY>, dont la valeur est B<0>, n'est pas inclus dans ce "
224 "masque de bits. Cette commande est toujours prise en charge (sur les noyaux "
225 "où B<membarrier>() est fourni)."
226
227 #. type: TP
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 #, no-wrap
231 msgid "B<MEMBARRIER_CMD_GLOBAL> (since Linux 4.16)"
232 msgstr "B<MEMBARRIER_CMD_GLOBAL> (depuis Linux 4.16)"
233
234 #. type: Plain text
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 msgid ""
238 "Ensure that all threads from all processes on the system pass through a "
239 "state where all memory accesses to user-space addresses match program order "
240 "between entry to and return from the B<membarrier>() system call. All "
241 "threads on the system are targeted by this command."
242 msgstr ""
243 "S'assurer que tous les threads de tous les processus du système passent par "
244 "un état où tous les accès mémoire aux adresses de l'espace utilisateur "
245 "correspondent à l'organisation du programme entre l'entrée et le retour de "
246 "l'appel système B<membarrier>(). Tous les threads du système sont visés par "
247 "cette commande."
248
249 #. type: TP
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, no-wrap
253 msgid "B<MEMBARRIER_CMD_GLOBAL_EXPEDITED> (since Linux 4.16)"
254 msgstr "B<MEMBARRIER_CMD_GLOBAL_EXPEDITED> (depuis Linux 4.16)"
255
256 #. type: Plain text
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 msgid ""
260 "Execute a memory barrier on all running threads of all processes that "
261 "previously registered with B<MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED>."
262 msgstr ""
263 "Mettre une barrière mémoire sur tous les threads en cours de tous les "
264 "processus qui se sont enregistrés précédemment avec "
265 "B<MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED>."
266
267 #. type: Plain text
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 msgid ""
271 "Upon return from the system call, the calling thread has a guarantee that "
272 "all running threads have passed through a state where all memory accesses to "
273 "user-space addresses match program order between entry to and return from "
274 "the system call (non-running threads are de facto in such a state). This "
275 "guarantee is provided only for the threads of processes that previously "
276 "registered with B<MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED>."
277 msgstr ""
278 "Lors du retour de l'appel système, le thread appelant a la garantie que tous "
279 "les threads en cours sont passés par un état où tous les accès mémoire aux "
280 "adresses de l'espace utilisateur correspondent à l'organisation du programme "
281 "entre l'entrée et le retour de l'appel système (les threads non en cours "
282 "sont dans cet état de facto). Cette garantie n'est apportée qu'aux threads "
283 "des processus qui se sont précédemment enregistrés avec "
284 "B<MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED>."
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 "Given that registration is about the intent to receive the barriers, it is "
291 "valid to invoke B<MEMBARRIER_CMD_GLOBAL_EXPEDITED> from a process that has "
292 "not employed B<MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED>."
293 msgstr ""
294 "Étant donné que l'enregistrement concerne l'intention de recevoir des "
295 "barrières, il est possible d'appeler "
296 "B<MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED> à partir d’un processus qui n’a "
297 "pas utilisé B<MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED>."
298
299 #. type: Plain text
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 msgid ""
303 "The \"expedited\" commands complete faster than the non-expedited ones; they "
304 "never block, but have the downside of causing extra overhead."
305 msgstr ""
306 "Les commandes « accélérées » (expedited) se terminent plus vite que celles "
307 "non accélérées ; elles ne se bloquent jamais, mais elles causent aussi un "
308 "temps-système supplémentaire."
309
310 #. type: TP
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 #, no-wrap
314 msgid "B<MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED> (since Linux 4.16)"
315 msgstr "B<MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED> (depuis Linux 4.16)"
316
317 #. type: Plain text
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 msgid ""
321 "Register the process's intent to receive B<MEMBARRIER_CMD_GLOBAL_EXPEDITED> "
322 "memory barriers."
323 msgstr ""
324 "Enregistrer l'intention du processus de recevoir des barrières mémoire "
325 "B<MEMBARRIER_CMD_GLOBAL_EXPEDITED>."
326
327 #. type: TP
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
330 #, no-wrap
331 msgid "B<MEMBARRIER_CMD_PRIVATE_EXPEDITED> (since Linux 4.14)"
332 msgstr "B<MEMBARRIER_CMD_PRIVATE_EXPEDITED> (depuis Linux 4.14)"
333
334 #. type: Plain text
335 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
336 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
337 msgid ""
338 "Execute a memory barrier on each running thread belonging to the same "
339 "process as the calling thread."
340 msgstr ""
341 "Poser une barrière mémoire sur chaque thread en cours appartenant au même "
342 "processus que le thread appelant."
343
344 #. type: Plain text
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 msgid ""
348 "Upon return from the system call, the calling thread has a guarantee that "
349 "all its running thread siblings have passed through a state where all memory "
350 "accesses to user-space addresses match program order between entry to and "
351 "return from the system call (non-running threads are de facto in such a "
352 "state). This guarantee is provided only for threads in the same process as "
353 "the calling thread."
354 msgstr ""
355 "Au retour de l'appel système, le thread appelant a la garantie que tous ses "
356 "homologues en cours passent par un état où tous les accès mémoire aux "
357 "adresses de l'espace utilisateur correspondent à l'ordre du programme entre "
358 "l'entrée et le retour de l'appel système (les threads non en cours sont dans "
359 "cet état de facto). Cette garantie n'est apportée qu'aux threads du même "
360 "processus que le thread appelant."
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 "A process must register its intent to use the private expedited command "
367 "prior to using it."
368 msgstr ""
369 "Un processus doit enregistrer son intention d'utiliser la commande accélérée "
370 "privée avant de le faire."
371
372 #. type: TP
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 #, no-wrap
376 msgid "B<MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED> (since Linux 4.14)"
377 msgstr "B<MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED> (depuis Linux 4.14)"
378
379 #. type: Plain text
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 msgid ""
383 "Register the process's intent to use B<MEMBARRIER_CMD_PRIVATE_EXPEDITED>."
384 msgstr ""
385 "Enregistrer l'intention du processus d'utiliser "
386 "B<MEMBARRIER_CMD_PRIVATE_EXPEDITED>."
387
388 #. type: TP
389 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
390 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
391 #, no-wrap
392 msgid "B<MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE> (since Linux 4.16)"
393 msgstr "B<MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE> (depuis Linux 4.16)"
394
395 #. type: Plain text
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 msgid ""
399 "In addition to providing the memory ordering guarantees described in "
400 "B<MEMBARRIER_CMD_PRIVATE_EXPEDITED>, upon return from system call the "
401 "calling thread has a guarantee that all its running thread siblings have "
402 "executed a core serializing instruction. This guarantee is provided only "
403 "for threads in the same process as the calling thread."
404 msgstr ""
405 "Outre les garanties d'organisation de la mémoire décrites dans "
406 "B<MEMBARRIER_CMD_PRIVATE_EXPEDITED>, lors du retour de l'appel système, le "
407 "thread appelant a la garantie que tous ses homologues ont exécuté une "
408 "instruction de sérialisation du cœur. Cette garantie n'est apportée que pour "
409 "les threads du même processus que celui appelant."
410
411 #. type: Plain text
412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
414 msgid ""
415 "The \"expedited\" commands complete faster than the non-expedited ones, they "
416 "never block, but have the downside of causing extra overhead."
417 msgstr ""
418 "Les commandes « accélérées » se terminent plus vite que celles non "
419 "accélérées, elles ne se bloquent jamais, mais demandent aussi un temps-"
420 "système supplémentaire."
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 "A process must register its intent to use the private expedited sync core "
427 "command prior to using it."
428 msgstr ""
429 "Un processus doit enregistrer son intention d'utiliser la commande accélérée "
430 "privée de synchronisation de cœur avant de le faire."
431
432 #. type: TP
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 #, no-wrap
436 msgid "B<MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE> (since Linux 4.16)"
437 msgstr "B<MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE> (depuis Linux 4.16)"
438
439 #. type: Plain text
440 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
441 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
442 msgid ""
443 "Register the process's intent to use "
444 "B<MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE>."
445 msgstr ""
446 "Enregistrer l'intention du processus d'utiliser "
447 "B<MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE>."
448
449 #. type: TP
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 #, no-wrap
453 msgid "B<MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ> (since Linux 5.10)"
454 msgstr "B<MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ> (depuis Linux 5.10)"
455
456 #. type: Plain text
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 msgid ""
460 "Ensure the caller thread, upon return from system call, that all its running "
461 "thread siblings have any currently running rseq critical sections restarted "
462 "if I<flags> parameter is 0; if I<flags> parameter is "
463 "B<MEMBARRIER_CMD_FLAG_CPU>, then this operation is performed only on CPU "
464 "indicated by I<cpu_id>. This guarantee is provided only for threads in the "
465 "same process as the calling thread."
466 msgstr ""
467 "Assurer au thread appelant, pendant le retour de l'appel système, que tous "
468 "ses homologues en cours ont toutes les sections critiques rseq (restartable "
469 "sequence) en cours redémarrées si le paramètre I<flags> vaut B<0> ; s'il "
470 "vaut B<MEMBARRIER_CMD_FLAG_CPU>, cette opération n'est effectuée que sur le "
471 "processeur indiqué par I<cpu_id>. Cette garantie n'est apportée qu'aux "
472 "threads du même processus que le thread appelant."
473
474 #. type: Plain text
475 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
476 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
477 msgid "RSEQ membarrier is only available in the \"private expedited\" form."
478 msgstr ""
479 "RSEQ membarrier n'est disponible que sous la forme « private expedited »."
480
481 #. type: Plain text
482 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
483 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
484 msgid ""
485 "A process must register its intent to use the private expedited rseq command "
486 "prior to using it."
487 msgstr ""
488 "Un processus doit enregistrer son intention d'utiliser la commande accélérée "
489 "privée rseq avant de le faire."
490
491 #. type: TP
492 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
493 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
494 #, no-wrap
495 msgid "B<MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ> (since Linux 5.10)"
496 msgstr "B<MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ> (depuis Linux 5.10)"
497
498 #. type: Plain text
499 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
500 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
501 msgid ""
502 "Register the process's intent to use "
503 "B<MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ>."
504 msgstr ""
505 "Enregistrer l'intention du processus d'utiliser "
506 "B<MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ>."
507
508 #. type: TP
509 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
510 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
511 #, no-wrap
512 msgid "B<MEMBARRIER_CMD_SHARED> (since Linux 4.3)"
513 msgstr "B<MEMBARRIER_CMD_SHARED> (depuis Linux 4.3)"
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 "This is an alias for B<MEMBARRIER_CMD_GLOBAL> that exists for header "
520 "backward compatibility."
521 msgstr ""
522 "Il s'agit d'un alias pour B<MEMBARRIER_CMD_GLOBAL> pour la "
523 "rétrocompatibilité de l'entête."
524
525 #. type: Plain text
526 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
527 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
528 msgid ""
529 "The I<flags> argument must be specified as 0 unless the command is "
530 "B<MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ>, in which case I<flags> can be "
531 "either 0 or B<MEMBARRIER_CMD_FLAG_CPU>."
532 msgstr ""
533 "Le paramètre I<flags> doit être indiqué en tant que B<0>, sauf si la "
534 "commande est B<MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ>, auquel cas I<flags> "
535 "peut être soit B<0>, soit B<MEMBARRIER_CMD_FLAG_CPU>."
536
537 #. type: Plain text
538 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
539 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
540 msgid ""
541 "The I<cpu_id> argument is ignored unless I<flags> is "
542 "B<MEMBARRIER_CMD_FLAG_CPU>, in which case it must specify the CPU targeted "
543 "by this membarrier command."
544 msgstr ""
545 "Le paramètre I<cpu_id> est ignoré sauf si I<flags> est "
546 "B<MEMBARRIER_CMD_FLAG_CPU>, auquel cas il doit indiquer le processeur ciblé "
547 "par cette commande membarrier."
548
549 #. type: Plain text
550 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
551 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
552 msgid ""
553 "All memory accesses performed in program order from each targeted thread are "
554 "guaranteed to be ordered with respect to B<membarrier>()."
555 msgstr ""
556 "Tous les accès mémoire effectués dans l'organisation du programme à partir "
557 "de chaque thread visé sont garantis d'être organisés par rapport à "
558 "B<membarrier>()."
559
560 #. type: Plain text
561 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
562 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
563 msgid ""
564 "If we use the semantic I<barrier()> to represent a compiler barrier forcing "
565 "memory accesses to be performed in program order across the barrier, and "
566 "I<smp_mb()> to represent explicit memory barriers forcing full memory "
567 "ordering across the barrier, we have the following ordering table for each "
568 "pairing of I<barrier()>, B<membarrier>(), and I<smp_mb()>. The pair "
569 "ordering is detailed as (O: ordered, X: not ordered):"
570 msgstr ""
571 "Si nous utilisons la sémantique I<barrier()> pour représenter une barrière "
572 "du compilateur qui force les accès mémoire à s'opérer dans l'ordre du "
573 "programme le long des barrières, et I<smp_mb()> pour représenter les "
574 "barrières explicites de la mémoire qui forcent toute la mémoire à "
575 "s'organiser le long de la barrière, nous obtenons le tableau d'organisation "
576 "suivant pour chaque paire de I<barrier()>, B<membarrier>() et I<smp_mb()>. "
577 "L'organisation de la paire est détaillée ainsi (O : organisée, X : non "
578 "organisée) :"
579
580 #. type: tbl table
581 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
582 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
583 #, no-wrap
584 msgid "barrier()"
585 msgstr "barrier()"
586
587 #. type: tbl table
588 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
589 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
590 #, no-wrap
591 msgid "smp_mb()"
592 msgstr "smp_mb()"
593
594 #. type: tbl table
595 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
596 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
597 #, no-wrap
598 msgid "membarrier()"
599 msgstr "membarrier()"
600
601 #. type: tbl table
602 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
603 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
604 #, no-wrap
605 msgid "X"
606 msgstr "X"
607
608 #. type: tbl table
609 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
610 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
611 #, no-wrap
612 msgid "O"
613 msgstr "O"
614
615 #. type: SH
616 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
617 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
618 #, no-wrap
619 msgid "RETURN VALUE"
620 msgstr "VALEUR RENVOYÉE"
621
622 #. type: Plain text
623 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
624 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
625 msgid ""
626 "On success, the B<MEMBARRIER_CMD_QUERY> operation returns a bit mask of "
627 "supported commands, and the B<MEMBARRIER_CMD_GLOBAL>, "
628 "B<MEMBARRIER_CMD_GLOBAL_EXPEDITED>, "
629 "B<MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED>, "
630 "B<MEMBARRIER_CMD_PRIVATE_EXPEDITED>, "
631 "B<MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED>, "
632 "B<MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE>, and "
633 "B<MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE> operations return "
634 "zero. On error, -1 is returned, and I<errno> is set to indicate the error."
635 msgstr ""
636 "En cas de succès, l'opération B<MEMBARRIER_CMD_QUERY> renvoie un masque de "
637 "bits des commandes prises en charge, et les opérations "
638 "B<MEMBARRIER_CMD_GLOBAL>, B<MEMBARRIER_CMD_GLOBAL_EXPEDITED>, "
639 "B<MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED>, "
640 "B<MEMBARRIER_CMD_PRIVATE_EXPEDITED>, "
641 "B<MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED>, "
642 "B<MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE> et "
643 "B<MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE> renvoient B<0>. En "
644 "cas d'erreur, B<-1> est renvoyé et I<errno> est défini pour indiquer "
645 "l'erreur."
646
647 #. type: Plain text
648 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
649 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
650 msgid ""
651 "For a given command, with I<flags> set to 0, this system call is guaranteed "
652 "to always return the same value until reboot. Further calls with the same "
653 "arguments will lead to the same result. Therefore, with I<flags> set to 0, "
654 "error handling is required only for the first call to B<membarrier>()."
655 msgstr ""
656 "Pour une commande donnée, quand I<flags> est positionné sur B<0>, cet appel "
657 "système est garanti de renvoyer toujours la même valeur jusqu'au "
658 "redémarrage. Les appels suivants ayant les mêmes paramètres conduiront au "
659 "même résultat. Donc, quand I<flags> est positionné sur B<0>, une gestion des "
660 "erreurs n'est nécessaire que pour le premier appel à B<membarrier>()."
661
662 #. type: SH
663 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
664 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
665 #, no-wrap
666 msgid "ERRORS"
667 msgstr "ERREURS"
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<EINVAL>"
674 msgstr "B<EINVAL>"
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 "I<cmd> is invalid, or I<flags> is nonzero, or the B<MEMBARRIER_CMD_GLOBAL> "
681 "command is disabled because the I<nohz_full> CPU parameter has been set, or "
682 "the B<MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE> and "
683 "B<MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE> commands are not "
684 "implemented by the architecture."
685 msgstr ""
686 "I<cmd> n'est pas valable ou I<flags> ne vaut pas zéro ou la commande "
687 "B<MEMBARRIER_CMD_GLOBAL> est désactivée car le paramètre I<nohz_full> du "
688 "processeur a été positionné ou les commandes "
689 "B<MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE> et "
690 "B<MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE> ne sont pas "
691 "implémentées par l'architecture."
692
693 #. type: TP
694 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
695 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
696 #, no-wrap
697 msgid "B<ENOSYS>"
698 msgstr "B<ENOSYS>"
699
700 #. type: Plain text
701 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
702 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
703 msgid "The B<membarrier>() system call is not implemented by this kernel."
704 msgstr "L'appel système B<membarrier>() n'est pas implémenté par ce noyau."
705
706 #. type: TP
707 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
708 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
709 #, no-wrap
710 msgid "B<EPERM>"
711 msgstr "B<EPERM>"
712
713 #. type: Plain text
714 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
715 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
716 msgid ""
717 "The current process was not registered prior to using private expedited "
718 "commands."
719 msgstr ""
720 "Le processus actuel n'était pas enregistré avant d'utiliser les commandes "
721 "accélérées privées."
722
723 #. type: SH
724 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
725 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
726 #, no-wrap
727 msgid "STANDARDS"
728 msgstr "NORMES"
729
730 #. type: Plain text
731 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
732 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
733 msgid "Linux."
734 msgstr "Linux."
735
736 #. type: SH
737 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
738 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
739 #, no-wrap
740 msgid "HISTORY"
741 msgstr "HISTORIQUE"
742
743 #. type: Plain text
744 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
745 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
746 msgid "Linux 4.3."
747 msgstr "Linux 4.3."
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 "Before Linux 5.10, the prototype was:"
753 msgstr "Avant Linux 5.10, le prototype était :"
754
755 #. type: Plain text
756 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
757 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
758 #, no-wrap
759 msgid "B<int membarrier(int >I<cmd>B<, int >I<flags>B<);>\n"
760 msgstr "B<int membarrier(int >I<cmd>B<, int >I<flags>B<);>\n"
761
762 #. type: SH
763 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
764 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
765 #, no-wrap
766 msgid "NOTES"
767 msgstr "NOTES"
768
769 #. type: Plain text
770 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
771 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
772 msgid ""
773 "A memory barrier instruction is part of the instruction set of architectures "
774 "with weakly ordered memory models. It orders memory accesses prior to the "
775 "barrier and after the barrier with respect to matching barriers on other "
776 "cores. For instance, a load fence can order loads prior to and following "
777 "that fence with respect to stores ordered by store fences."
778 msgstr ""
779 "Une instruction de barrière mémoire fait partie du jeu d'instructions des "
780 "architectures ayant des modèles de mémoire faiblement organisés. Elle "
781 "organise les accès mémoire avant et après la barrière par rapport à celles "
782 "correspondantes sur les autres cœurs. Par exemple, une barrière de charge "
783 "peut organiser les charges avant et après elle par rapport aux stockages "
784 "conservés dans les barrières de stockage."
785
786 #. type: Plain text
787 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
788 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
789 msgid ""
790 "Program order is the order in which instructions are ordered in the program "
791 "assembly code."
792 msgstr ""
793 "L'organisation du programme est l'ordre dans lequel les instructions sont "
794 "ordonnées dans le code d'assembleur du programme."
795
796 #. type: Plain text
797 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
798 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
799 msgid ""
800 "Examples where B<membarrier>() can be useful include implementations of "
801 "Read-Copy-Update libraries and garbage collectors."
802 msgstr ""
803 "Parmi les exemples où B<membarrier>() peut être utile, figurent les "
804 "implémentations des bibliothèques Read-Copy-Update et des ramasse-miettes "
805
806 #. type: SH
807 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
808 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
809 #, no-wrap
810 msgid "EXAMPLES"
811 msgstr "EXEMPLES"
812
813 #. type: Plain text
814 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
815 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
816 msgid ""
817 "Assuming a multithreaded application where \"fast_path()\" is executed very "
818 "frequently, and where \"slow_path()\" is executed infrequently, the "
819 "following code (x86) can be transformed using B<membarrier>():"
820 msgstr ""
821 "Supposons une application multithreadée où « fast_path() » est exécutée très "
822 "souvent et où « slow_path() » l'est rarement, alors le code suivant (x86) "
823 "peut être transformé en utilisant B<membarrier>() :"
824
825 #. type: Plain text
826 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
827 #: opensuse-tumbleweed
828 #, fuzzy, no-wrap
829 #| msgid ""
830 #| "#include E<lt>stdlib.hE<gt>\n"
831 #| "\\&\n"
832 #| "static volatile int a, b;\n"
833 #| "\\&\n"
834 #| "static void\n"
835 #| "fast_path(int *read_b)\n"
836 #| "{\n"
837 #| " a = 1;\n"
838 #| " asm volatile (\"mfence\" : : : \"memory\");\n"
839 #| " *read_b = b;\n"
840 #| "}\n"
841 #| "\\&\n"
842 #| "static void\n"
843 #| "slow_path(int *read_a)\n"
844 #| "{\n"
845 #| " b = 1;\n"
846 #| " asm volatile (\"mfence\" : : : \"memory\");\n"
847 #| " *read_a = a;\n"
848 #| "}\n"
849 #| "\\&\n"
850 #| "int\n"
851 #| "main(void)\n"
852 #| "{\n"
853 #| " int read_a, read_b;\n"
854 #| "\\&\n"
855 #| " /*\n"
856 #| " * Real applications would call fast_path() and slow_path()\n"
857 #| " * from different threads. Call those from main() to keep\n"
858 #| " * this example short.\n"
859 #| " */\n"
860 #| "\\&\n"
861 #| " slow_path(&read_a);\n"
862 #| " fast_path(&read_b);\n"
863 #| "\\&\n"
864 #| " /*\n"
865 #| " * read_b == 0 implies read_a == 1 and\n"
866 #| " * read_a == 0 implies read_b == 1.\n"
867 #| " */\n"
868 #| "\\&\n"
869 #| " if (read_b == 0 && read_a == 0)\n"
870 #| " abort();\n"
871 #| "\\&\n"
872 #| " exit(EXIT_SUCCESS);\n"
873 #| "}\n"
874 msgid ""
875 "#include E<lt>stdlib.hE<gt>\n"
876 "\\&\n"
877 "static volatile int a, b;\n"
878 "\\&\n"
879 "static void\n"
880 "fast_path(int *read_b)\n"
881 "{\n"
882 " a = 1;\n"
883 " asm volatile (\"mfence\" : : : \"memory\");\n"
884 " *read_b = b;\n"
885 "}\n"
886 "\\&\n"
887 "static void\n"
888 "slow_path(int *read_a)\n"
889 "{\n"
890 " b = 1;\n"
891 " asm volatile (\"mfence\" : : : \"memory\");\n"
892 " *read_a = a;\n"
893 "}\n"
894 "\\&\n"
895 "int\n"
896 "main(void)\n"
897 "{\n"
898 " int read_a, read_b;\n"
899 "\\&\n"
900 " /*\n"
901 " * Real applications would call fast_path() and slow_path()\n"
902 " * from different threads. Call those from main() to keep\n"
903 " * this example short.\n"
904 " */\n"
905 "\\&\n"
906 " slow_path(&read_a);\n"
907 " fast_path(&read_b);\n"
908 "\\&\n"
909 " /*\n"
910 " * read_b == 0 implies read_a == 1 and\n"
911 " * read_a == 0 implies read_b == 1.\n"
912 " */\n"
913 "\\&\n"
914 " if (read_b == 0 && read_a == 0)\n"
915 " abort();\n"
916 "\\&\n"
917 " exit(EXIT_SUCCESS);\n"
918 "}\n"
919 msgstr ""
920 "#include E<lt>stdlib.hE<gt>\n"
921 "\\&\n"
922 "static volatile int a, b;\n"
923 "\\&\n"
924 "static void\n"
925 "fast_path(int *read_b)\n"
926 "{\n"
927 " a = 1;\n"
928 " asm volatile (\"mfence\" : : : \"memory\");\n"
929 " *read_b = b;\n"
930 "}\n"
931 "\\&\n"
932 "static void\n"
933 "slow_path(int *read_a)\n"
934 "{\n"
935 " b = 1;\n"
936 " asm volatile (\"mfence\" : : : \"memory\");\n"
937 " *read_a = a;\n"
938 "}\n"
939 "\\&\n"
940 "int\n"
941 "main(void)\n"
942 "{\n"
943 " int read_a, read_b;\n"
944 "\\&\n"
945 " /*\n"
946 " * De vraies applications appelleraient fast_path() et slow_path()\n"
947 " * à partir de différents threads. Appel à partir de main()\n"
948 " * pour garder cet exemple court.\n"
949 " */\n"
950 "\\&\n"
951 " slow_path(&read_a);\n"
952 " fast_path(&read_b);\n"
953 "\\&\n"
954 " /*\n"
955 " * read_b == 0 implique que read_a == 1 et\n"
956 " * read_a == 0 implique que read_b == 1.\n"
957 " */\n"
958 "\\&\n"
959 " if (read_b == 0 && read_a == 0)\n"
960 " abort();\n"
961 "\\&\n"
962 " exit(EXIT_SUCCESS);\n"
963 "}\n"
964
965 #. type: Plain text
966 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
967 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
968 msgid "The code above transformed to use B<membarrier>() becomes:"
969 msgstr "Le code ci-dessus transformé pour utiliser B<membarrier>() donne :"
970
971 #. type: Plain text
972 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
973 #: opensuse-tumbleweed
974 #, fuzzy, no-wrap
975 #| msgid ""
976 #| "#define _GNU_SOURCE\n"
977 #| "#include E<lt>stdlib.hE<gt>\n"
978 #| "#include E<lt>stdio.hE<gt>\n"
979 #| "#include E<lt>unistd.hE<gt>\n"
980 #| "#include E<lt>sys/syscall.hE<gt>\n"
981 #| "#include E<lt>linux/membarrier.hE<gt>\n"
982 #| "\\&\n"
983 #| "static volatile int a, b;\n"
984 #| "\\&\n"
985 #| "static int\n"
986 #| "membarrier(int cmd, unsigned int flags, int cpu_id)\n"
987 #| "{\n"
988 #| " return syscall(__NR_membarrier, cmd, flags, cpu_id);\n"
989 #| "}\n"
990 #| "\\&\n"
991 #| "static int\n"
992 #| "init_membarrier(void)\n"
993 #| "{\n"
994 #| " int ret;\n"
995 #| "\\&\n"
996 #| " /* Check that membarrier() is supported. */\n"
997 #| "\\&\n"
998 #| " ret = membarrier(MEMBARRIER_CMD_QUERY, 0, 0);\n"
999 #| " if (ret E<lt> 0) {\n"
1000 #| " perror(\"membarrier\");\n"
1001 #| " return -1;\n"
1002 #| " }\n"
1003 #| "\\&\n"
1004 #| " if (!(ret & MEMBARRIER_CMD_GLOBAL)) {\n"
1005 #| " fprintf(stderr,\n"
1006 #| " \"membarrier does not support MEMBARRIER_CMD_GLOBAL\\[rs]n\");\n"
1007 #| " return -1;\n"
1008 #| " }\n"
1009 #| "\\&\n"
1010 #| " return 0;\n"
1011 #| "}\n"
1012 #| "\\&\n"
1013 #| "static void\n"
1014 #| "fast_path(int *read_b)\n"
1015 #| "{\n"
1016 #| " a = 1;\n"
1017 #| " asm volatile (\"\" : : : \"memory\");\n"
1018 #| " *read_b = b;\n"
1019 #| "}\n"
1020 #| "\\&\n"
1021 #| "static void\n"
1022 #| "slow_path(int *read_a)\n"
1023 #| "{\n"
1024 #| " b = 1;\n"
1025 #| " membarrier(MEMBARRIER_CMD_GLOBAL, 0, 0);\n"
1026 #| " *read_a = a;\n"
1027 #| "}\n"
1028 #| "\\&\n"
1029 #| "int\n"
1030 #| "main(int argc, char *argv[])\n"
1031 #| "{\n"
1032 #| " int read_a, read_b;\n"
1033 #| "\\&\n"
1034 #| " if (init_membarrier())\n"
1035 #| " exit(EXIT_FAILURE);\n"
1036 #| "\\&\n"
1037 #| " /*\n"
1038 #| " * Real applications would call fast_path() and slow_path()\n"
1039 #| " * from different threads. Call those from main() to keep\n"
1040 #| " * this example short.\n"
1041 #| " */\n"
1042 #| "\\&\n"
1043 #| " slow_path(&read_a);\n"
1044 #| " fast_path(&read_b);\n"
1045 #| "\\&\n"
1046 #| " /*\n"
1047 #| " * read_b == 0 implies read_a == 1 and\n"
1048 #| " * read_a == 0 implies read_b == 1.\n"
1049 #| " */\n"
1050 #| "\\&\n"
1051 #| " if (read_b == 0 && read_a == 0)\n"
1052 #| " abort();\n"
1053 #| "\\&\n"
1054 #| " exit(EXIT_SUCCESS);\n"
1055 #| "}\n"
1056 msgid ""
1057 "#define _GNU_SOURCE\n"
1058 "#include E<lt>stdlib.hE<gt>\n"
1059 "#include E<lt>stdio.hE<gt>\n"
1060 "#include E<lt>unistd.hE<gt>\n"
1061 "#include E<lt>sys/syscall.hE<gt>\n"
1062 "#include E<lt>linux/membarrier.hE<gt>\n"
1063 "\\&\n"
1064 "static volatile int a, b;\n"
1065 "\\&\n"
1066 "static int\n"
1067 "membarrier(int cmd, unsigned int flags, int cpu_id)\n"
1068 "{\n"
1069 " return syscall(__NR_membarrier, cmd, flags, cpu_id);\n"
1070 "}\n"
1071 "\\&\n"
1072 "static int\n"
1073 "init_membarrier(void)\n"
1074 "{\n"
1075 " int ret;\n"
1076 "\\&\n"
1077 " /* Check that membarrier() is supported. */\n"
1078 "\\&\n"
1079 " ret = membarrier(MEMBARRIER_CMD_QUERY, 0, 0);\n"
1080 " if (ret E<lt> 0) {\n"
1081 " perror(\"membarrier\");\n"
1082 " return -1;\n"
1083 " }\n"
1084 "\\&\n"
1085 " if (!(ret & MEMBARRIER_CMD_GLOBAL)) {\n"
1086 " fprintf(stderr,\n"
1087 " \"membarrier does not support MEMBARRIER_CMD_GLOBAL\\[rs]n\");\n"
1088 " return -1;\n"
1089 " }\n"
1090 "\\&\n"
1091 " return 0;\n"
1092 "}\n"
1093 "\\&\n"
1094 "static void\n"
1095 "fast_path(int *read_b)\n"
1096 "{\n"
1097 " a = 1;\n"
1098 " asm volatile (\"\" : : : \"memory\");\n"
1099 " *read_b = b;\n"
1100 "}\n"
1101 "\\&\n"
1102 "static void\n"
1103 "slow_path(int *read_a)\n"
1104 "{\n"
1105 " b = 1;\n"
1106 " membarrier(MEMBARRIER_CMD_GLOBAL, 0, 0);\n"
1107 " *read_a = a;\n"
1108 "}\n"
1109 "\\&\n"
1110 "int\n"
1111 "main(int argc, char *argv[])\n"
1112 "{\n"
1113 " int read_a, read_b;\n"
1114 "\\&\n"
1115 " if (init_membarrier())\n"
1116 " exit(EXIT_FAILURE);\n"
1117 "\\&\n"
1118 " /*\n"
1119 " * Real applications would call fast_path() and slow_path()\n"
1120 " * from different threads. Call those from main() to keep\n"
1121 " * this example short.\n"
1122 " */\n"
1123 "\\&\n"
1124 " slow_path(&read_a);\n"
1125 " fast_path(&read_b);\n"
1126 "\\&\n"
1127 " /*\n"
1128 " * read_b == 0 implies read_a == 1 and\n"
1129 " * read_a == 0 implies read_b == 1.\n"
1130 " */\n"
1131 "\\&\n"
1132 " if (read_b == 0 && read_a == 0)\n"
1133 " abort();\n"
1134 "\\&\n"
1135 " exit(EXIT_SUCCESS);\n"
1136 "}\n"
1137 msgstr ""
1138 "#define _GNU_SOURCE\n"
1139 "#include E<lt>stdlib.hE<gt>\n"
1140 "#include E<lt>stdio.hE<gt>\n"
1141 "#include E<lt>unistd.hE<gt>\n"
1142 "#include E<lt>sys/syscall.hE<gt>\n"
1143 "#include E<lt>linux/membarrier.hE<gt>\n"
1144 "\\&\n"
1145 "static volatile int a, b;\n"
1146 "\\&\n"
1147 "static int\n"
1148 "membarrier(int cmd, unsigned int flags, int cpu_id)\n"
1149 "{\n"
1150 " return syscall(__NR_membarrier, cmd, flags, cpu_id);\n"
1151 "}\n"
1152 "\\&\n"
1153 "static int\n"
1154 "init_membarrier(void)\n"
1155 "{\n"
1156 " int ret;\n"
1157 "\\&\n"
1158 " /* Vérifier que membarrier() est pris en charge. */\n"
1159 "\\&\n"
1160 " ret = membarrier(MEMBARRIER_CMD_QUERY, 0, 0);\n"
1161 " if (ret E<lt> 0) {\n"
1162 " perror(\"membarrier\");\n"
1163 " return -1;\n"
1164 " }\n"
1165 "\\&\n"
1166 " if (!(ret & MEMBARRIER_CMD_GLOBAL)) {\n"
1167 " fprintf(stderr,\n"
1168 " \"membarrier ne gère pas MEMBARRIER_CMD_GLOBAL\\[rs]n\");\n"
1169 " return -1;\n"
1170 " }\n"
1171 "\\&\n"
1172 " return 0;\n"
1173 "}\n"
1174 "\\&\n"
1175 "static void\n"
1176 "fast_path(int *read_b)\n"
1177 "{\n"
1178 " a = 1;\n"
1179 " asm volatile (\"\" : : : \"memory\");\n"
1180 " *read_b = b;\n"
1181 "}\n"
1182 "\\&\n"
1183 "static void\n"
1184 "slow_path(int *read_a)\n"
1185 "{\n"
1186 " b = 1;\n"
1187 " membarrier(MEMBARRIER_CMD_GLOBAL, 0, 0);\n"
1188 " *read_a = a;\n"
1189 "}\n"
1190 "\\&\n"
1191 "int\n"
1192 "main(int argc, char *argv[])\n"
1193 "{\n"
1194 " int read_a, read_b;\n"
1195 "\\&\n"
1196 " if (init_membarrier())\n"
1197 " exit(EXIT_FAILURE);\n"
1198 "\\&\n"
1199 " /*\n"
1200 " * De vraies applications appelleraient fast_path() et slow_path()\n"
1201 " * à partir de différents threads. Appel à partir de main()\n"
1202 " * pour garder cet exemple court.\n"
1203 " */\n"
1204 "\\&\n"
1205 " slow_path(&read_a);\n"
1206 " fast_path(&read_b);\n"
1207 "\\&\n"
1208 " /*\n"
1209 " * read_b == 0 implique que read_a == 1 et\n"
1210 " * read_a == 0 implique que read_b == 1.\n"
1211 " */\n"
1212 "\\&\n"
1213 " if (read_b == 0 && read_a == 0)\n"
1214 " abort();\n"
1215 "\\&\n"
1216 " exit(EXIT_SUCCESS);\n"
1217 "}\n"
1218
1219 #. type: TH
1220 #: debian-trixie
1221 #, no-wrap
1222 msgid "2024-06-15"
1223 msgstr "15 juin 2024"
1224
1225 #. type: TH
1226 #: debian-trixie
1227 #, no-wrap
1228 msgid "Linux man-pages 6.9.1"
1229 msgstr "Pages du manuel de Linux 6.9.1"
1230
1231 #. type: Plain text
1232 #: debian-trixie
1233 msgid "Standard C library (I<libc>, I<-lc>)"
1234 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
1235
1236 #. type: Plain text
1237 #: debian-trixie fedora-44 fedora-rawhide
1238 #, no-wrap
1239 msgid ""
1240 "#include E<lt>stdlib.hE<gt>\n"
1241 "\\&\n"
1242 "static volatile int a, b;\n"
1243 "\\&\n"
1244 "static void\n"
1245 "fast_path(int *read_b)\n"
1246 "{\n"
1247 " a = 1;\n"
1248 " asm volatile (\"mfence\" : : : \"memory\");\n"
1249 " *read_b = b;\n"
1250 "}\n"
1251 "\\&\n"
1252 "static void\n"
1253 "slow_path(int *read_a)\n"
1254 "{\n"
1255 " b = 1;\n"
1256 " asm volatile (\"mfence\" : : : \"memory\");\n"
1257 " *read_a = a;\n"
1258 "}\n"
1259 "\\&\n"
1260 "int\n"
1261 "main(void)\n"
1262 "{\n"
1263 " int read_a, read_b;\n"
1264 "\\&\n"
1265 " /*\n"
1266 " * Real applications would call fast_path() and slow_path()\n"
1267 " * from different threads. Call those from main() to keep\n"
1268 " * this example short.\n"
1269 " */\n"
1270 "\\&\n"
1271 " slow_path(&read_a);\n"
1272 " fast_path(&read_b);\n"
1273 "\\&\n"
1274 " /*\n"
1275 " * read_b == 0 implies read_a == 1 and\n"
1276 " * read_a == 0 implies read_b == 1.\n"
1277 " */\n"
1278 "\\&\n"
1279 " if (read_b == 0 && read_a == 0)\n"
1280 " abort();\n"
1281 "\\&\n"
1282 " exit(EXIT_SUCCESS);\n"
1283 "}\n"
1284 msgstr ""
1285 "#include E<lt>stdlib.hE<gt>\n"
1286 "\\&\n"
1287 "static volatile int a, b;\n"
1288 "\\&\n"
1289 "static void\n"
1290 "fast_path(int *read_b)\n"
1291 "{\n"
1292 " a = 1;\n"
1293 " asm volatile (\"mfence\" : : : \"memory\");\n"
1294 " *read_b = b;\n"
1295 "}\n"
1296 "\\&\n"
1297 "static void\n"
1298 "slow_path(int *read_a)\n"
1299 "{\n"
1300 " b = 1;\n"
1301 " asm volatile (\"mfence\" : : : \"memory\");\n"
1302 " *read_a = a;\n"
1303 "}\n"
1304 "\\&\n"
1305 "int\n"
1306 "main(void)\n"
1307 "{\n"
1308 " int read_a, read_b;\n"
1309 "\\&\n"
1310 " /*\n"
1311 " * De vraies applications appelleraient fast_path() et slow_path()\n"
1312 " * à partir de différents threads. Appel à partir de main()\n"
1313 " * pour garder cet exemple court.\n"
1314 " */\n"
1315 "\\&\n"
1316 " slow_path(&read_a);\n"
1317 " fast_path(&read_b);\n"
1318 "\\&\n"
1319 " /*\n"
1320 " * read_b == 0 implique que read_a == 1 et\n"
1321 " * read_a == 0 implique que read_b == 1.\n"
1322 " */\n"
1323 "\\&\n"
1324 " if (read_b == 0 && read_a == 0)\n"
1325 " abort();\n"
1326 "\\&\n"
1327 " exit(EXIT_SUCCESS);\n"
1328 "}\n"
1329
1330 #. type: Plain text
1331 #: debian-trixie fedora-44 fedora-rawhide
1332 #, no-wrap
1333 msgid ""
1334 "#define _GNU_SOURCE\n"
1335 "#include E<lt>stdlib.hE<gt>\n"
1336 "#include E<lt>stdio.hE<gt>\n"
1337 "#include E<lt>unistd.hE<gt>\n"
1338 "#include E<lt>sys/syscall.hE<gt>\n"
1339 "#include E<lt>linux/membarrier.hE<gt>\n"
1340 "\\&\n"
1341 "static volatile int a, b;\n"
1342 "\\&\n"
1343 "static int\n"
1344 "membarrier(int cmd, unsigned int flags, int cpu_id)\n"
1345 "{\n"
1346 " return syscall(__NR_membarrier, cmd, flags, cpu_id);\n"
1347 "}\n"
1348 "\\&\n"
1349 "static int\n"
1350 "init_membarrier(void)\n"
1351 "{\n"
1352 " int ret;\n"
1353 "\\&\n"
1354 " /* Check that membarrier() is supported. */\n"
1355 "\\&\n"
1356 " ret = membarrier(MEMBARRIER_CMD_QUERY, 0, 0);\n"
1357 " if (ret E<lt> 0) {\n"
1358 " perror(\"membarrier\");\n"
1359 " return -1;\n"
1360 " }\n"
1361 "\\&\n"
1362 " if (!(ret & MEMBARRIER_CMD_GLOBAL)) {\n"
1363 " fprintf(stderr,\n"
1364 " \"membarrier does not support MEMBARRIER_CMD_GLOBAL\\[rs]n\");\n"
1365 " return -1;\n"
1366 " }\n"
1367 "\\&\n"
1368 " return 0;\n"
1369 "}\n"
1370 "\\&\n"
1371 "static void\n"
1372 "fast_path(int *read_b)\n"
1373 "{\n"
1374 " a = 1;\n"
1375 " asm volatile (\"\" : : : \"memory\");\n"
1376 " *read_b = b;\n"
1377 "}\n"
1378 "\\&\n"
1379 "static void\n"
1380 "slow_path(int *read_a)\n"
1381 "{\n"
1382 " b = 1;\n"
1383 " membarrier(MEMBARRIER_CMD_GLOBAL, 0, 0);\n"
1384 " *read_a = a;\n"
1385 "}\n"
1386 "\\&\n"
1387 "int\n"
1388 "main(int argc, char *argv[])\n"
1389 "{\n"
1390 " int read_a, read_b;\n"
1391 "\\&\n"
1392 " if (init_membarrier())\n"
1393 " exit(EXIT_FAILURE);\n"
1394 "\\&\n"
1395 " /*\n"
1396 " * Real applications would call fast_path() and slow_path()\n"
1397 " * from different threads. Call those from main() to keep\n"
1398 " * this example short.\n"
1399 " */\n"
1400 "\\&\n"
1401 " slow_path(&read_a);\n"
1402 " fast_path(&read_b);\n"
1403 "\\&\n"
1404 " /*\n"
1405 " * read_b == 0 implies read_a == 1 and\n"
1406 " * read_a == 0 implies read_b == 1.\n"
1407 " */\n"
1408 "\\&\n"
1409 " if (read_b == 0 && read_a == 0)\n"
1410 " abort();\n"
1411 "\\&\n"
1412 " exit(EXIT_SUCCESS);\n"
1413 "}\n"
1414 msgstr ""
1415 "#define _GNU_SOURCE\n"
1416 "#include E<lt>stdlib.hE<gt>\n"
1417 "#include E<lt>stdio.hE<gt>\n"
1418 "#include E<lt>unistd.hE<gt>\n"
1419 "#include E<lt>sys/syscall.hE<gt>\n"
1420 "#include E<lt>linux/membarrier.hE<gt>\n"
1421 "\\&\n"
1422 "static volatile int a, b;\n"
1423 "\\&\n"
1424 "static int\n"
1425 "membarrier(int cmd, unsigned int flags, int cpu_id)\n"
1426 "{\n"
1427 " return syscall(__NR_membarrier, cmd, flags, cpu_id);\n"
1428 "}\n"
1429 "\\&\n"
1430 "static int\n"
1431 "init_membarrier(void)\n"
1432 "{\n"
1433 " int ret;\n"
1434 "\\&\n"
1435 " /* Vérifier que membarrier() est pris en charge. */\n"
1436 "\\&\n"
1437 " ret = membarrier(MEMBARRIER_CMD_QUERY, 0, 0);\n"
1438 " if (ret E<lt> 0) {\n"
1439 " perror(\"membarrier\");\n"
1440 " return -1;\n"
1441 " }\n"
1442 "\\&\n"
1443 " if (!(ret & MEMBARRIER_CMD_GLOBAL)) {\n"
1444 " fprintf(stderr,\n"
1445 " \"membarrier ne gère pas MEMBARRIER_CMD_GLOBAL\\[rs]n\");\n"
1446 " return -1;\n"
1447 " }\n"
1448 "\\&\n"
1449 " return 0;\n"
1450 "}\n"
1451 "\\&\n"
1452 "static void\n"
1453 "fast_path(int *read_b)\n"
1454 "{\n"
1455 " a = 1;\n"
1456 " asm volatile (\"\" : : : \"memory\");\n"
1457 " *read_b = b;\n"
1458 "}\n"
1459 "\\&\n"
1460 "static void\n"
1461 "slow_path(int *read_a)\n"
1462 "{\n"
1463 " b = 1;\n"
1464 " membarrier(MEMBARRIER_CMD_GLOBAL, 0, 0);\n"
1465 " *read_a = a;\n"
1466 "}\n"
1467 "\\&\n"
1468 "int\n"
1469 "main(int argc, char *argv[])\n"
1470 "{\n"
1471 " int read_a, read_b;\n"
1472 "\\&\n"
1473 " if (init_membarrier())\n"
1474 " exit(EXIT_FAILURE);\n"
1475 "\\&\n"
1476 " /*\n"
1477 " * De vraies applications appelleraient fast_path() et slow_path()\n"
1478 " * à partir de différents threads. Appel à partir de main()\n"
1479 " * pour garder cet exemple court.\n"
1480 " */\n"
1481 "\\&\n"
1482 " slow_path(&read_a);\n"
1483 " fast_path(&read_b);\n"
1484 "\\&\n"
1485 " /*\n"
1486 " * read_b == 0 implique que read_a == 1 et\n"
1487 " * read_a == 0 implique que read_b == 1.\n"
1488 " */\n"
1489 "\\&\n"
1490 " if (read_b == 0 && read_a == 0)\n"
1491 " abort();\n"
1492 "\\&\n"
1493 " exit(EXIT_SUCCESS);\n"
1494 "}\n"
1495
1496 #. type: TH
1497 #: fedora-44 fedora-rawhide
1498 #, no-wrap
1499 msgid "2024-07-23"
1500 msgstr "23 juillet 2024"
1501
1502 #. type: TH
1503 #: fedora-44 fedora-rawhide
1504 #, no-wrap
1505 msgid "Linux man-pages 6.13"
1506 msgstr "Pages du manuel de Linux 6.13"
1507
1508 #. type: TH
1509 #: mageia-cauldron
1510 #, no-wrap
1511 msgid "Linux man-pages 6.17"
1512 msgstr "Pages du manuel de Linux 6.17"
1513
1514 #. type: TH
1515 #: opensuse-leap-16-1 opensuse-tumbleweed
1516 #, no-wrap
1517 msgid "Linux man-pages (unreleased)"
1518 msgstr "Pages du manuel de Linux (non publiées)"