# French translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # Christophe Blaess , 1996-2003. # Stéphan Rafin , 2002. # Thierry Vignaud , 1999, 2002. # François Micaux, 2002. # Alain Portal , 2003-2008. # Jean-Philippe Guérard , 2005-2006. # Jean-Luc Coulon (f5ibh) , 2006-2007. # Julien Cristau , 2006-2007. # Thomas Huriaux , 2006-2008. # Nicolas François , 2006-2008. # Florentin Duneau , 2006-2010. # Simon Paillard , 2006. # Denis Barbier , 2006, 2010. # David Prévot , 2010-2014. # Jean-Pierre Giraud , 2022-2024. msgid "" msgstr "" "Project-Id-Version: manpages-l10n\n" "POT-Creation-Date: 2026-06-05 06:44+0200\n" "PO-Revision-Date: 2024-12-31 19:39+0100\n" "Last-Translator: Jean-Pierre Giraud \n" "Language-Team: French \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n > 1;\n" "X-Generator: Lokalize 22.12.3\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "spu_run" msgstr "spu_run" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2026-02-08" msgstr "8 février 2026" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "Pages du manuel de Linux 6.18" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "NOM" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "spu_run - execute an SPU context" msgstr "spu_run - Exécuter un contexte SPU" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "BIBLIOTHÈQUE" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Standard C library (I,\\ I<-lc>)" msgstr "Bibliothèque C standard (I,\\ I<-lc>)" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "SYNOPSIS" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "B<#include Esys/spu.hE> /* Definition of B constants */\n" "B<#include Esys/syscall.hE> /* Definition of B constants */\n" "B<#include Eunistd.hE>\n" msgstr "" "B<#include Esys/spu.hE> /* Définition des constantes B */\n" "B<#include Esys/syscall.hE> /* Définition des constantes B */\n" "B<#include Eunistd.hE>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "BIB<, uint32_t *>IB<, uint32_t *>IB<);>\n" msgstr "BIB<, uint32_t *>IB<, uint32_t *>IB<);>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I: glibc provides no wrapper for B(), necessitating the use " "of B(2)." msgstr "" "I : la glibc ne fournit pas d'enveloppe pour B(), " "imposant l'utilisation de B(2)." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "DESCRIPTION" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() system call is used on PowerPC machines that implement the " "Cell Broadband Engine Architecture in order to access Synergistic Processor " "Units (SPUs). The I argument is a file descriptor returned by " "B(2) that refers to a specific SPU context. When the context " "gets scheduled to a physical SPU, it starts execution at the instruction " "pointer passed in I." msgstr "" "L'appel système B() est utilisé sur les PowerPC disposant de " "l'architecture du processeur Cell dans le but d'accéder aux SPUs " "(Synergistic Processor Units). L'argument I est un descripteur de " "fichiers renvoyé par B(2) qui se réfère à un contexte SPU " "spécifique. Lorsque le contexte est livré à un SPU physique, il démarre son " "exécution au pointeur d'instruction passé à I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Execution of SPU code happens synchronously, meaning that B() " "blocks while the SPU is still running. If there is a need to execute SPU " "code in parallel with other code on either the main CPU or other SPUs, a new " "thread of execution must be created first (e.g., using B(3))." msgstr "" "L'exécution du code SPU se fait de manière synchrone. C'est pourquoi " "B() est bloquant tant que le SPU fonctionne. S'il est nécessaire " "d'exécuter du code SPU en parallèle avec d'autres codes, que se soit sur le " "processeur principal ou sur d'autres SPU, un nouveau thread doit d'abord " "être créé (par exemple en utilisant B(3))." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "When B() returns, the current value of the SPU program counter is " "written to I, so successive calls to B() can use the same " "I pointer." msgstr "" "Lorsque B() revient, la valeur courante du pointeur d'instruction " "SPU est écrite à I, donc il est possible d'appeler B() de " "nouveau avec le même pointeur I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I argument provides a buffer for an extended status code. If the " "SPU context was created with the B flag, then " "this buffer is populated by the Linux kernel before B() returns." msgstr "" "Le paramètre I fournit un tampon pour un code d'état étendu. Si le " "contexte SPU a été créé avec l'attribut B, ce " "tampon sera rempli par le noyau Linux avant que B() revienne." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The status code may be one (or more) of the following constants:" msgstr "Le code d'état peut être l'une (ou plus) des constantes suivantes :" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "A DMA alignment error occurred." msgstr "Une erreur d'alignement DMA s'est produite." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. SPE_EVENT_SPE_DATA_SEGMENT is defined, but does not seem to be generated #. at any point (in Linux 5.9 sources). #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "An invalid MFC DMA command was attempted." msgstr "Une commande MFC DMA invalide a été tentée." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "A DMA storage error occurred." msgstr "Une erreur de stockage DMA s'est produite." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "An illegal instruction was executed." msgstr "Une instruction illégale a été exécutée." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "NULL is a valid value for the I argument. In this case, the events " "will not be reported to the calling process." msgstr "" "NULL est une valeur valable pour le paramètre I. Dans ce cas, les " "événements ne seront pas remontés au processus appelant." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "RETURN VALUE" msgstr "VALEUR RENVOYÉE" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On success, B() returns the value of the I register. " "On failure, it returns -1 and sets I is set to indicate the error." msgstr "" "En cas de succès, B() renvoie la valeur du registre I. " "En cas d'échec, l'appel renvoie B<-1> et I est défini pour indiquer " "l'erreur." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I register value is a bit mask of status codes and " "optionally a 14-bit code returned from the B instruction on " "the SPU. The bit masks for the status codes are:" msgstr "" "La valeur du registre I est un masque de bits de code d'erreurs " "et en option d'un code de retour de 14 bits provenant de l'instruction " "B du SPU. Les bits des masques du code de retour sont :" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<0x02>" msgstr "B<0x02>" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "SPU was stopped by a B instruction." msgstr "Le SPU a été stoppé par une instruction B." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<0x04>" msgstr "B<0x04>" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "SPU was stopped by a B instruction." msgstr "Le SPU a été arrêté par une instruction B." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<0x08>" msgstr "B<0x08>" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "SPU is waiting for a channel." msgstr "Le SPU est en attente d'un canal." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<0x10>" msgstr "B<0x10>" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "SPU is in single-step mode." msgstr "Le SPU est en mode single-step." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<0x20>" msgstr "B<0x20>" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "SPU has tried to execute an invalid instruction." msgstr "SPU a essayé d'exécuter une instruction non valable." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<0x40>" msgstr "B<0x40>" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "SPU has tried to access an invalid channel." msgstr "SPU a essayé d'accéder à un canal non valable." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<0x3fff0000>" msgstr "B<0x3fff0000>" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The bits masked with this value contain the code returned from a B instruction. These bits are valid only if the 0x02 bit is set." msgstr "" "Les bits masqués avec cette valeur contiennent le code renvoyé par une " "instruction B. Ces bits ne sont valables que si le bit 0x02 " "est positionné." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If B() has not returned an error, one or more bits among the lower " "eight ones are always set." msgstr "" "Si B() ne renvoie pas d'erreur, au moins un des huit bits de poids " "faible est toujours positionné." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ERRORS" msgstr "ERREURS" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "I is not a valid file descriptor." msgstr "I n'est pas un descripteur de fichier valable." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I is not a valid pointer, or I is non-NULL and an invalid " "pointer." msgstr "" "I n'est pas un pointeur valable ou I n'est ni NULL ni un " "pointeur valable." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A signal occurred while B() was in progress; see B(7). " "The I value has been updated to the new program counter value if " "necessary." msgstr "" "Un signal est apparu pendant la progression de B() ; consultez " "B(7). La valeur I a été mise à jour à la nouvelle valeur du " "compteur de programme si nécessaire." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "I is not a valid file descriptor returned from B(2)." msgstr "" "I n'est pas un descripteur de fichier valable renvoyé par " "B(2)." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "There was not enough memory available to handle a page fault resulting from " "a Memory Flow Controller (MFC) direct memory access." msgstr "" "Il n'y a pas suffisamment de mémoire disponible pour gérer une faute de page " "résultant d'un accès direct à la mémoire d'un MFC (« Memory Flow " "Controller »)." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The functionality is not provided by the current system, because either the " "hardware does not provide SPUs or the spufs module is not loaded." msgstr "" "La fonctionnalité n'est par fournie par le système actuel parce que le " "matériel ne fournit pas de SPU ou parce que le module spufs n'est pas chargé." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "NORMES" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Linux on PowerPC." msgstr "Linux sur PowerPC." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "HISTORIQUE" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Linux 2.6.16." msgstr "Linux 2.6.16." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NOTES" msgstr "NOTES" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, fuzzy #| msgid "" #| "B() is meant to be used from libraries that implement a more " #| "abstract interface to SPUs, not to be used from regular applications. " #| "See E<.UR http://www.bsc.es\\:/projects\\:/deepcomputing\\:/linuxoncell/> " #| "E<.UE> for the recommended libraries." msgid "" "B() is meant to be used from libraries that implement a more " "abstract interface to SPUs, not to be used from regular applications. See " "E<.UR http:\\://www.bsc.es\\:/projects\\:/deepcomputing\\:/linuxoncell/> " "E<.UE> for the recommended libraries." msgstr "" "B() est conçu pour être appelé depuis des bibliothèques qui " "implémentent une interface plus abstraite pour les SPU, pas pour être appelé " "directement par les applications normales. Consultez E<.UR http://" "www.bsc.es\\:/projects\\:/deepcomputing\\:/linuxoncell/> E<.UE> pour les " "bibliothèques recommandées." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "EXEMPLES" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The following is an example of running a simple, one-instruction SPU program " "with the B() system call." msgstr "" "Vous trouverez ci-dessous un exemple pour lancer un programme simple, d'une " "instruction SPU, utilisant l'appel système B()." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, fuzzy, no-wrap #| msgid "" #| "#include Eerr.hE\n" #| "#include Efcntl.hE\n" #| "#include Estdint.hE\n" #| "#include Estdio.hE\n" #| "#include Estdlib.hE\n" #| "#include Esys/types.hE\n" #| "#include Eunistd.hE\n" #| "\\&\n" #| "int main(void)\n" #| "{\n" #| " int context, fd, spu_status;\n" #| " uint32_t instruction, npc;\n" #| "\\&\n" #| " context = syscall(SYS_spu_create, \"/spu/example-context\", 0, 0755);\n" #| " if (context == -1)\n" #| " err(EXIT_FAILURE, \"spu_create\");\n" #| "\\&\n" #| " /*\n" #| " * Write a \\[aq]stop 0x1234\\[aq] instruction to the SPU\\[aq]s\n" #| " * local store memory.\n" #| " */\n" #| " instruction = 0x00001234;\n" #| "\\&\n" #| " fd = open(\"/spu/example-context/mem\", O_RDWR);\n" #| " if (fd == -1)\n" #| " err(EXIT_FAILURE, \"open\");\n" #| " write(fd, &instruction, sizeof(instruction));\n" #| "\\&\n" #| " /*\n" #| " * set npc to the starting instruction address of the\n" #| " * SPU program. Since we wrote the instruction at the\n" #| " * start of the mem file, the entry point will be 0x0.\n" #| " */\n" #| " npc = 0;\n" #| "\\&\n" #| " spu_status = syscall(SYS_spu_run, context, &npc, NULL);\n" #| " if (spu_status == -1)\n" #| " err(EXIT_FAILURE, \"open\");\n" #| "\\&\n" #| " /*\n" #| " * We should see a status code of 0x12340002:\n" #| " * 0x00000002 (spu was stopped due to stop-and-signal)\n" #| " * | 0x12340000 (the stop-and-signal code)\n" #| " */\n" #| " printf(\"SPU Status: %#08x\\[rs]n\", spu_status);\n" #| "\\&\n" #| " exit(EXIT_SUCCESS);\n" #| "}\n" msgid "" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "int main(void)\n" "{\n" " int context, fd, spu_status;\n" " uint32_t instruction, npc;\n" "\\&\n" " context = syscall(SYS_spu_create, \"/spu/example-context\", 0, 0755);\n" " if (context == -1)\n" " err(EXIT_FAILURE, \"spu_create\");\n" "\\&\n" " /*\n" " * Write a \\[aq]stop 0x1234\\[aq] instruction to the SPU\\[aq]s\n" " * local store memory.\n" " */\n" " instruction = 0x00001234;\n" "\\&\n" " fd = open(\"/spu/example-context/mem\", O_RDWR);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"open\");\n" " write(fd, &instruction, sizeof(instruction));\n" "\\&\n" " /*\n" " * set npc to the starting instruction address of the\n" " * SPU program. Since we wrote the instruction at the\n" " * start of the mem file, the entry point will be 0x0.\n" " */\n" " npc = 0;\n" "\\&\n" " spu_status = syscall(SYS_spu_run, context, &npc, NULL);\n" " if (spu_status == -1)\n" " err(EXIT_FAILURE, \"open\");\n" "\\&\n" " /*\n" " * We should see a status code of 0x12340002:\n" " * 0x00000002 (spu was stopped due to stop-and-signal)\n" " * | 0x12340000 (the stop-and-signal code)\n" " */\n" " printf(\"SPU Status: %#08x\\[rs]n\", spu_status);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "int main(void)\n" "{\n" " int context, fd, spu_status;\n" " uint32_t instruction, npc;\n" "\\&\n" " context = syscall(SYS_spu_create, \"/spu/example-context\", 0, 0755);\n" " if (context == -1)\n" " err(EXIT_FAILURE, \"spu_create\");\n" "\\&\n" " /*\n" " * Write a \\[aq]stop 0x1234\\[aq] instruction to the SPU\\[aq]s\n" " * local store memory.\n" " */\n" " instruction = 0x00001234;\n" "\\&\n" " fd = open(\"/spu/example-context/mem\", O_RDWR);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"open\");\n" " write(fd, &instruction, sizeof(instruction));\n" "\\&\n" " /*\n" " * set npc to the starting instruction address of the\n" " * SPU program. Since we wrote the instruction at the\n" " * start of the mem file, the entry point will be 0x0.\n" " */\n" " npc = 0;\n" "\\&\n" " spu_status = syscall(SYS_spu_run, context, &npc, NULL);\n" " if (spu_status == -1)\n" " err(EXIT_FAILURE, \"open\");\n" "\\&\n" " /*\n" " * We should see a status code of 0x12340002:\n" " * 0x00000002 (spu was stopped due to stop-and-signal)\n" " * | 0x12340000 (the stop-and-signal code)\n" " */\n" " printf(\"SPU Status: %#08x\\[rs]n\", spu_status);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. SRC END #. .SH AUTHORS #. Arnd Bergmann , Jeremy Kerr #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "VOIR AUSSI" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B(2), B(2), B(7), B(7)" msgstr "B(2), B(2), B(7), B(7)" #. type: TH #: debian-trixie #, no-wrap msgid "2024-06-15" msgstr "15 juin 2024" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "Pages du manuel de Linux 6.9.1" #. type: Plain text #: debian-trixie msgid "Standard C library (I, I<-lc>)" msgstr "Bibliothèque C standard (I, I<-lc>)" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "B() is meant to be used from libraries that implement a more " "abstract interface to SPUs, not to be used from regular applications. See " "E<.UR http://www.bsc.es\\:/projects\\:/deepcomputing\\:/linuxoncell/> E<.UE> " "for the recommended libraries." msgstr "" "B() est conçu pour être appelé depuis des bibliothèques qui " "implémentent une interface plus abstraite pour les SPU, pas pour être appelé " "directement par les applications normales. Consultez E<.UR http://" "www.bsc.es\\:/projects\\:/deepcomputing\\:/linuxoncell/> E<.UE> pour les " "bibliothèques recommandées." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "int main(void)\n" "{\n" " int context, fd, spu_status;\n" " uint32_t instruction, npc;\n" "\\&\n" " context = syscall(SYS_spu_create, \"/spu/example-context\", 0, 0755);\n" " if (context == -1)\n" " err(EXIT_FAILURE, \"spu_create\");\n" "\\&\n" " /*\n" " * Write a \\[aq]stop 0x1234\\[aq] instruction to the SPU\\[aq]s\n" " * local store memory.\n" " */\n" " instruction = 0x00001234;\n" "\\&\n" " fd = open(\"/spu/example-context/mem\", O_RDWR);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"open\");\n" " write(fd, &instruction, sizeof(instruction));\n" "\\&\n" " /*\n" " * set npc to the starting instruction address of the\n" " * SPU program. Since we wrote the instruction at the\n" " * start of the mem file, the entry point will be 0x0.\n" " */\n" " npc = 0;\n" "\\&\n" " spu_status = syscall(SYS_spu_run, context, &npc, NULL);\n" " if (spu_status == -1)\n" " err(EXIT_FAILURE, \"open\");\n" "\\&\n" " /*\n" " * We should see a status code of 0x12340002:\n" " * 0x00000002 (spu was stopped due to stop-and-signal)\n" " * | 0x12340000 (the stop-and-signal code)\n" " */\n" " printf(\"SPU Status: %#08x\\[rs]n\", spu_status);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "int main(void)\n" "{\n" " int context, fd, spu_status;\n" " uint32_t instruction, npc;\n" "\\&\n" " context = syscall(SYS_spu_create, \"/spu/example-context\", 0, 0755);\n" " if (context == -1)\n" " err(EXIT_FAILURE, \"spu_create\");\n" "\\&\n" " /*\n" " * Write a \\[aq]stop 0x1234\\[aq] instruction to the SPU\\[aq]s\n" " * local store memory.\n" " */\n" " instruction = 0x00001234;\n" "\\&\n" " fd = open(\"/spu/example-context/mem\", O_RDWR);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"open\");\n" " write(fd, &instruction, sizeof(instruction));\n" "\\&\n" " /*\n" " * set npc to the starting instruction address of the\n" " * SPU program. Since we wrote the instruction at the\n" " * start of the mem file, the entry point will be 0x0.\n" " */\n" " npc = 0;\n" "\\&\n" " spu_status = syscall(SYS_spu_run, context, &npc, NULL);\n" " if (spu_status == -1)\n" " err(EXIT_FAILURE, \"open\");\n" "\\&\n" " /*\n" " * We should see a status code of 0x12340002:\n" " * 0x00000002 (spu was stopped due to stop-and-signal)\n" " * | 0x12340000 (the stop-and-signal code)\n" " */\n" " printf(\"SPU Status: %#08x\\[rs]n\", spu_status);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-07-23" msgstr "23 juillet 2024" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "Pages du manuel de Linux 6.13" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "Pages du manuel de Linux 6.17" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr "Pages du manuel de Linux (non publiées)"