mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Yanteng Si <siyanteng@loongson.cn>
To: Rui Li <me@lirui.org>, Alex Shi <alexs@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>,
	Wu XiangCheng <wu.xiangcheng@linux.dev>,
	linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 2/2] docs/zh_CN: Add userspace-api/ebpf Chinese translation
Date: Thu, 20 Oct 2022 14:57:04 +0800	[thread overview]
Message-ID: <6826d42e-d4c9-0675-8150-2d65111d2016@loongson.cn> (raw)
In-Reply-To: <cdd100d92752f76827fa7abfcd9903b857d71044.1666185911.git.me@lirui.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 <me@lirui.org>

Reviewed-by: Yanteng Si <siyanteng@loongson.cn>


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 <me@lirui.org>
> +
> +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 <me@lirui.org>
> +
> +eBPF Syscall
> +------------
> +
> +:作者:
> +    - Alexei Starovoitov <ast@kernel.org>
> +    - Joe Stringer <joe@wand.net.nz>
> +    - Michael Kerrisk <mtk.manpages@gmail.com>
> +
> +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


  reply	other threads:[~2022-10-20  6:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-19 13:30 [PATCH v3 0/2] docs/zh_CN: Add userspace-api/index and ebpf " Rui Li
2022-10-19 13:30 ` [PATCH v3 1/2] docs/zh_CN: Add userspace-api/index " Rui Li
2022-10-20  6:55   ` Yanteng Si
2022-10-19 13:30 ` [PATCH v3 2/2] docs/zh_CN: Add userspace-api/ebpf " Rui Li
2022-10-20  6:57   ` Yanteng Si [this message]
2022-10-28 18:28 ` [PATCH v3 0/2] docs/zh_CN: Add userspace-api/index and ebpf " Jonathan Corbet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6826d42e-d4c9-0675-8150-2d65111d2016@loongson.cn \
    --to=siyanteng@loongson.cn \
    --cc=alexs@kernel.org \
    --cc=corbet@lwn.net \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=me@lirui.org \
    --cc=wu.xiangcheng@linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®