From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C97AC433FE for ; Thu, 20 Oct 2022 06:57:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229874AbiJTG5S (ORCPT ); Thu, 20 Oct 2022 02:57:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229853AbiJTG5P (ORCPT ); Thu, 20 Oct 2022 02:57:15 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BFA7B127428; Wed, 19 Oct 2022 23:57:09 -0700 (PDT) Received: from loongson.cn (unknown [112.20.109.239]) by gateway (Coremail) with SMTP id _____8DxTttD8VBj0_YAAA--.4967S3; Thu, 20 Oct 2022 14:57:07 +0800 (CST) Received: from [192.168.100.127] (unknown [112.20.109.239]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxLuJB8VBj0MMBAA--.7361S3; Thu, 20 Oct 2022 14:57:05 +0800 (CST) Message-ID: <6826d42e-d4c9-0675-8150-2d65111d2016@loongson.cn> Date: Thu, 20 Oct 2022 14:57:04 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v3 2/2] docs/zh_CN: Add userspace-api/ebpf Chinese translation Content-Language: en-US To: Rui Li , Alex Shi Cc: Jonathan Corbet , Wu XiangCheng , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: From: Yanteng Si In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQ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AIcVCF04k26cxKx2IYs7xG6r 1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1U YxBIdaVFxhVjvjDU0xZFpf9x07jz2NtUUUUU= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/19/22 21:30, Rui Li wrote: > Translate the following documents into Chinese: > > - userspace-api/ebpf/index.rst > - userspace-api/ebpf/syscall.rst > > Signed-off-by: Rui Li Reviewed-by: Yanteng Si Thanks, Yanteng > --- > Changes since v2: > - Remove long English reference > - Remove ebpf from TODO > > Changes since v1: > - Translate bpf subcommand title > - Align title > - Add space after doc path > --- > .../zh_CN/userspace-api/ebpf/index.rst | 22 ++++++++++++++ > .../zh_CN/userspace-api/ebpf/syscall.rst | 29 +++++++++++++++++++ > .../zh_CN/userspace-api/index.rst | 6 +++- > 3 files changed, 56 insertions(+), 1 deletion(-) > create mode 100644 Documentation/translations/zh_CN/userspace-api/ebpf/index.rst > create mode 100644 Documentation/translations/zh_CN/userspace-api/ebpf/syscall.rst > > diff --git a/Documentation/translations/zh_CN/userspace-api/ebpf/index.rst b/Documentation/translations/zh_CN/userspace-api/ebpf/index.rst > new file mode 100644 > index 000000000000..d52c7052f101 > --- /dev/null > +++ b/Documentation/translations/zh_CN/userspace-api/ebpf/index.rst > @@ -0,0 +1,22 @@ > +.. SPDX-License-Identifier: GPL-2.0 > +.. include:: ../../disclaimer-zh_CN.rst > + > +:Original: Documentation/userspace-api/ebpf/index.rst > + > +:翻译: > + > + 李睿 Rui Li > + > +eBPF 用户空间API > +================ > + > +eBPF是一种在Linux内核中提供沙箱化运行环境的机制,它可以在不改变内核源码或加载 > +内核模块的情况下扩展运行时和编写工具。eBPF程序能够被附加到各种内核子系统中,包 > +括网络,跟踪和Linux安全模块(LSM)等。 > + > +关于eBPF的内部内核文档,请查看 Documentation/bpf/index.rst 。 > + > +.. toctree:: > + :maxdepth: 1 > + > + syscall > diff --git a/Documentation/translations/zh_CN/userspace-api/ebpf/syscall.rst b/Documentation/translations/zh_CN/userspace-api/ebpf/syscall.rst > new file mode 100644 > index 000000000000..47e2a59ae45d > --- /dev/null > +++ b/Documentation/translations/zh_CN/userspace-api/ebpf/syscall.rst > @@ -0,0 +1,29 @@ > +.. SPDX-License-Identifier: GPL-2.0 > +.. include:: ../../disclaimer-zh_CN.rst > + > +:Original: Documentation/userspace-api/ebpf/syscall.rst > + > +:翻译: > + > + 李睿 Rui Li > + > +eBPF Syscall > +------------ > + > +:作者: > + - Alexei Starovoitov > + - Joe Stringer > + - Michael Kerrisk > + > +bpf syscall的主要信息可以在 `man-pages`_ 中的 `bpf(2)`_ 找到。 > + > +bpf() 子命令参考 > +~~~~~~~~~~~~~~~~ > + > +子命令在以下内核代码中: > + > +include/uapi/linux/bpf.h > + > +.. Links: > +.. _man-pages: https://www.kernel.org/doc/man-pages/ > +.. _bpf(2): https://man7.org/linux/man-pages/man2/bpf.2.html > diff --git a/Documentation/translations/zh_CN/userspace-api/index.rst b/Documentation/translations/zh_CN/userspace-api/index.rst > index 3b834fe7e33b..12c63d81c663 100644 > --- a/Documentation/translations/zh_CN/userspace-api/index.rst > +++ b/Documentation/translations/zh_CN/userspace-api/index.rst > @@ -21,6 +21,11 @@ Linux 内核用户空间API指南 > > 目录 > > +.. toctree:: > + :maxdepth: 2 > + > + ebpf/index > + > TODOList: > > * no_new_privs > @@ -29,7 +34,6 @@ TODOList: > * unshare > * spec_ctrl > * accelerators/ocxl > -* ebpf/index > * ioctl/index > * iommu > * media/index