# Danish translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # Joe Dalton , 2026. msgid "" msgstr "" "Project-Id-Version: manpages-l10n 4.30.0\n" "POT-Creation-Date: 2026-06-05 06:44+0200\n" "PO-Revision-Date: 2026-05-08 18:53+0200\n" "Last-Translator: Joe Dalton \n" "Language-Team: Danish \n" "Language: da\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" #. 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. februar 2026" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "Linux man-pages 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 "NAVN" #. 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 - afvikl en SPU-kontekst" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "BIBLIOTEK" #. 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 "C-standardbibliotek (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> /* Definition af B-konstanter */\n" "B<#include Esys/syscall.hE> /* Definition af B-konstanter */\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: glibc tilbyder intet omslag for B(), hvilket " "nødvendiggør brug af 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 "BESKRIVELSE" #. 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 "" "Systemkaldet B() bruges på PowerPC-maskiner, der implementerer Cell " "Broadband Engine Architecture for at tilgå Synergistic Processor Units " "(SPU'er). Argumentet I er en fildeskriptor returneret af " "B(2), der refererer til en specifik SPU-kontekst. Når konteksten " "bliver planlagt til en fysisk SPU, så startes afvikling på " "instruktionspegeren sendt i 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 "" "Afvikling af SPU-kode sker synkront, hvilket betyder at B() " "blokerer mens SPU stadig afvikles. Hvis der er et behov for at afvikle SPU-" "kode parallelt med anden kode på enten hoved-cpu'en eller andre SPU'er, skal " "en ny afviklingstråd oprettes først (f.eks. via 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 "" "Når B() returnerer skrives den nuværend eværdi for SPU-" "programtælleren til I, så efterfølgende kald til B() kan bruge " "den samme I-peger." #. 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 "" "Argumentet I tilbyder et mellemlager for en udvidet statuskode. Hvis " "SPU-konteksten blev oprettet med flaget B, så " "udfyldes dette mellemlager af Linuxkernen før B() returnerer." #. 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 "Statuskoden kan være en (eller flere) af de følgende konstanter:" #. 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 "Der opstod en DMA-justeringsfejl." #. 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 "En ugyldig MFC DMA-kommando blev forsøgt." #. 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 "Der opstod en DMA-lagerfejl." #. 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 "En illegal instruktion blev afviklet." #. 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 er en gyldig værdi for argumentet I argument. I dette tilfælde " "vil hændelserne ikke blive rapporteret til den kaldende proces." #. 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 "RETURVÆRDI" # english error sets/set #. 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 "" "Ved succes returnerer B() værdien for registeret I. Ved " "returneres -1 og I angives for at indikere fejlen." #. 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 "" "Registerværdien I er en bitmaske for statuskoder og valgfrit en " "14-bit kode returneret fra instruktionen B på SPU'en. " "Bitmaskene for statuskoderne er:" #. 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 "SPU blev stoppet af en B-instruktion." #. 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 "SPU blev stoppet af en B-instrution." #. 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 "SPU venter på en kanal." #. 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 "SPU er i enkelt trin-tilstand." #. 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 har forsøgt at afvikle en ugyldig instruktion." #. 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 har forsøgt at tilgå en ugyldig kanal." #. 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 "" "Bittene maskeret med denne værdi indeholder koden returneret fra en B-instruktion. Disse bit er kun gyldige hvis 0x02-bitten er " "angivet." #. 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 "" "Hvis B() ikke har returneret en fejl, er en eller flere bit blandt " "de nedre otte altid angivet.*" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ERRORS" msgstr "FEJL" #. 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 er ikke en gyldig filbeskrivelse." #. 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 er ikke en gyldig peger, eller I er ikke-NULL og en ugyldig " "peger." #. 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 "" "Der opstod et signal mens B() var i gang; se B(7). Værdien " "I er blevet opdateret til den nye programtællerværdi hvis nødvendigt." #. 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 er ikke en gyldig fildeskriptor returneret fra 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 "" "Der var ikke nok hukommelse tilgængelig til at håndtere en sidefejl medført " "fra en Memory Flow Controller (MFC) direkte hukommelsesadgang." #. 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 "" "Funktionaliteten er ikke tilbudt af det nuværende system, da hverken " "udstyret tilbyder SPU'er eller spufs-modulet er indlæst." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "STANDARDER" #. 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 på 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 "HISTORIK" #. 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 "NOTER" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed 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() er lavet til brug fra biblioteker, der impelemnterer en mere " "abstrakt grænseflade til SPU'er, ikke til brug fra normale programmer. Se " "E<.UR http:\\://www.bsc.es\\:/projects\\:/deepcomputing\\:/linuxoncell/> " "E<.UE> for de anbefalede biblioteker." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "EKSEMPLER" #. 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 "" "Det følgende er et eksempel på afvikling af et simpelt, en instruktion SPU-" "program med systemkaldet B()." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, 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" " * Skriv en \\[aq]stop 0x1234\\[aq] instruktion til SPU'en\\[aq]s\n" " * lokale lagerhukommelse.\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" " * angiv npc til den startende instruktionsadresse for\n" " * SPU-programmet. Siden vi skrev instruktionen i starten af\n" " * mem-filen vil indgangspunktet være 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" " * Vi bør se en statuskode på 0x12340002:\n" " * 0x00000002 (spu blev stoppet på grund af stop og signal)\n" " * | 0x12340000 (stop og signal-koden)\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 "SE OGSÅ" #. 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. juni 2024" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "Linux man-pages 6.9.1" #. type: Plain text #: debian-trixie msgid "Standard C library (I, I<-lc>)" msgstr "C-standardbibliotek (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() er lavet til brug fra biblioteker, der impelemnterer en mere " "abstrakt grænseflade til SPU'er, ikke til brug fra normale programmer. Se " "E<.UR http://www.bsc.es\\:/projects\\:/deepcomputing\\:/linuxoncell/> E<.UE> " "for de anbefalede biblioteker." #. 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" " * Skriv en \\[aq]stop 0x1234\\[aq] instruktion til SPU'en\\[aq]s\n" " * lokale lagerhukommelse.\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" " * angiv npc til den startende instruktionsadresse for\n" " * SPU-programmet. Da vi skrev instruktionen i begyndelsen af\n" " * mem-filen, vil indgangspunktet være 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" " * Vi bør se en statuskode på 0x12340002:\n" " * 0x00000002 (spu blev stoppet på grund af stop og signal)\n" " * | 0x12340000 (stop og signal-koden)\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. juli 2024" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "Linux man-pages 6.13" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "Linux man-pages 6.17" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr "Linux man-pages (ej udgivet)"