# Arabic translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # زايد السعيدي , 2026. msgid "" msgstr "" "Project-Id-Version: manpages-l10n 4.30.2\n" "POT-Creation-Date: 2026-06-05 06:44+0200\n" "PO-Revision-Date: 2026-05-18 17:49+0400\n" "Last-Translator: Zayed Al-Saidi \n" "Language-Team: Arabic \n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" "X-Generator: Lokalize 23.08.5\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 فبراير 2026" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "صفحات دليل لينكس 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 "الاسم" #. 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 - تنفيذ سياق 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 "المكتبة" #. 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 "مكتبة سي المعيارية (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 "موجز" #. 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> /* تعريف ثوابت B */\n" "B<#include Esys/syscall.hE> /* تعريف ثوابت 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<ملاحظة>: لا توفر glibc غلافًا لـ B()، مما يستلزم استخدام " "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 "الوصف" #. 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 "" "تُستخدم استدعاء النظام B() على أجهزة PowerPC التي تنفذ بنية Cell " "Broadband Engine للوصول إلى وحدات المعالجة التآزرية (SPUs). وسيطة I هي " "واصف ملف يُرجع بواسطة B(2) يشير إلى سياق SPU محدد. عندما يُجدول " "السياق إلى SPU فعلي، يبدأ التنفيذ عند مؤشر التعليمات المُمرر في 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 "" "يحدث تنفيذ كود SPU بشكل متزامن، مما يعني أن B() يُحجب بينما لا يزال " "SPU قيد التشغيل. إذا كانت هناك حاجة لتنفيذ كود SPU بالتوازي مع كود آخر على " "وحدة المعالجة المركزية الرئيسية أو SPUs أخرى، فيجب إنشاء خيط تنفيذ جديد أولاً " "(مثل استخدام 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 "" "عندما يُرجع B()، تُكتب القيمة الحالية لعداد برنامج SPU إلى I، " "لذا يمكن للاستدعاءات المتعاقبة لـ B() استخدام نفس المؤشر 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 "" "توفر وسيطة I مخزنًا مؤقتًا لرمز حالة ممتد. إذا أُنشئ سياق SPU مع العلم " "B، فإن نواة لينكس تملأ هذا المخزن المؤقت قبل أن " "يُرجع B()." #. 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 "قد يكون رمز الحالة واحدًا (أو أكثر) من الثوابت التالية:" #. 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 "حدث خطأ محاذاة DMA." #. 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 "جرت محاولة لأمر MFC DMA غير صالح." #. 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 "حدث خطأ تخزين DMA." #. 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 "نُفذت تعليمة غير قانونية." #. 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 قيمة صالحة لوسيطة I. في هذه الحالة، لن تُبلغ الأحداث إلى العملية " "المستدعية." #. 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 "قيمة الإرجاع" #. 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 "" "عند النجاح، يُرجع B() قيمة سجل I. عند الفشل، يُرجع -1 " "ويُعيِّن I للإشارة إلى الخطأ." #. 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 "" "قيمة سجل I هي قناع بت لرموز الحالة واختياريًا رمز 14 بت يُرجع من " "تعليمة B على SPU. أقنعة البت لرموز الحالة هي:" #. 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 بواسطة تعليمة 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 "أُوقف SPU بواسطة تعليمة 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 "ينتظر SPU قناة." #. 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 في وضع الخطوة الواحدة." #. 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 تنفيذ تعليمة غير صالحة." #. 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 الوصول إلى قناة غير صالحة." #. 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 "" "تحتوي البتات المُقنَّعة بهذه القيمة على الرمز المُعاد من تعليمة B. هذه البتات صالحة فقط إذا عُيِّنت بتة 0x02." #. 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 "" "إذا لم يُرجع B() خطأ، فإن بتة واحدة أو أكثر من الثماني بتات السفلية " "تُعيَّن دائمًا." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ERRORS" msgstr "الأخطاء" #. 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 ليس واصف ملف صالح." #. 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 ليس مؤشرًا صالحًا، أو I غير NULL ومؤشر غير صالح." #. 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 "" "حدثت إشارة أثناء تنفيذ B()؛ انظر B(7). تم تحديث قيمة " "I إلى قيمة عداد البرنامج الجديدة إذا لزم الأمر." #. 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 ليس واصف ملف صالحًا تم إرجاعه من 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 "" "لم تكن هناك ذاكرة كافية متاحة لمعالجة خطأ صفحة ناتج عن وصول مباشر للذاكرة من " "وحدة التحكم في تدفق الذاكرة (MFC)." #. 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 "" "هذه الوظيفة غير مقدمة من قبل النظام الحالي، لأن الأجهزة لا توفر وحدات SPUs " "أو لأن وحدة spufs غير محملة." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "المعايير" #. 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 "لينكس على 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 "التاريخ" #. 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 "لينكس 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 "ملاحظات" #. 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() مخصص للاستخدام من المكتبات التي تنفذ واجهة أكثر تجريدًا لـ " "SPUs، وليس للاستخدام من التطبيقات العادية. انظر E<.UR http:\\://www.bsc." "es\\:/projects\\:/deepcomputing\\:/linuxoncell/> E<.UE> للمكتبات الموصى بها." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "أمثلة" #. 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 "" "التالي مثال على تشغيل برنامج SPU بسيط ذو تعليمة واحدة باستخدام استدعاء " "النظام 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" " * اكتب تعليمة \\[aq]stop 0x1234\\[aq] إلى ذاكرة\n" " * التخزين المحلي لـ SPU.\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" " * اضبط npc على عنوان تعليمة البداية لبرنامج\n" " * SPU. نظرًا لأننا كتبنا التعليمة في بداية\n" " * ملف mem، فإن نقطة الدخول ستكون 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" " * يجب أن نرى رمز حالة 0x12340002:\n" " * 0x00000002 (تم إيقاف spu بسبب stop-and-signal)\n" " * | 0x12340000 (رمز stop-and-signal)\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 "انظر أيضًا" #. 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 يونيو 2024" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "صفحات دليل لينكس 6.9.1" #. type: Plain text #: debian-trixie msgid "Standard C library (I, I<-lc>)" msgstr "مكتبة سي المعيارية (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() مخصص للاستخدام من المكتبات التي تنفذ واجهة أكثر تجريدًا لـ " "SPUs، وليس للاستخدام من التطبيقات العادية. انظر E<.UR http://www.bsc.es\\:/" "projects\\:/deepcomputing\\:/linuxoncell/> E<.UE> للمكتبات الموصى بها." #. 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" " * اكتب تعليمة \\[aq]stop 0x1234\\[aq] إلى ذاكرة\n" " * التخزين المحلي لـ SPU.\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" " * اضبط npc على عنوان تعليمة البداية لبرنامج\n" " * SPU. نظرًا لأننا كتبنا التعليمة في بداية\n" " * ملف mem، فإن نقطة الدخول ستكون 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" " * يجب أن نرى رمز حالة 0x12340002:\n" " * 0x00000002 (تم إيقاف spu بسبب stop-and-signal)\n" " * | 0x12340000 (رمز stop-and-signal)\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 يوليو 2024" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "صفحات دليل لينكس 6.13" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "صفحات دليل لينكس 6.17" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr "صفحات دليل لينكس (لم تصدر بعد)"