Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1128439rwi; Wed, 19 Oct 2022 07:05:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM55SSFKOQhCSdY94vQCoUoK/u1/YhVg6laePBOWUPtJ+NtZvizemXwgM/EwC4Amr0bxco4q X-Received: by 2002:a05:6402:4022:b0:45c:9f2c:c4d3 with SMTP id d34-20020a056402402200b0045c9f2cc4d3mr7674465eda.223.1666188300254; Wed, 19 Oct 2022 07:05:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666188300; cv=none; d=google.com; s=arc-20160816; b=rCfiVUeqN1E1QiN1wfSh867aNU82OrevExDgIBILMQyniBL1XSpcNUBLmkYEZ0DuJR 4WemtjE4dje8PSMNskBma30aXQSqbe8aQxlJwOsHq32IaeQj59PpW7HZfT/soojGQeOY QQDoFLEY14e2ILbZkC4JckiGoCmifwsoFoJe43Jdb/AqWA9aQUO9DDC8wKk3C+1J1oJK Ozy/DMjSfn9TjxRGLABZwsNC0tHjYgUsDco7GmlQxoQGQKBanmASwQZS80JjCOS920ds o18C+5kS8a7oMl149YAZ4ogZ3Hk6Ai4rzjcTJMsl0Ouuf/RyLuEARPjHXr2YMw8mpx+l 8vJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kLONnTrgE41xLuoR7aINxfaHvykieYVHakm2mQu46pE=; b=0WQ9GU8MoWOL4gvGYNZvMgj9uUjDDs/WqdD1UB/2njTEgwdOWgIgB6prvDxWqzDRjq 7SAvIG7GosI7JfFS/y2v+7z883B5S1EQSxmegqTePEE9MzZn05GSDr0Y/8Jfq2ezNl+1 pVN9UfGLBLH9BNWO2FZXAMPJP902o24C1Sd90NoMPwgSmkdwo2zWPaXyYwsTQfPX5D5o JFGd/1dPdZjrWsTGWD7N0CY1ACLzJ0EgwhzGzHISC7Gn+lYawIfjPsJn7PySjrQRcCMB SEAHxOE292mKTdNZPMl8NF/PgcWT78dXlovxn+JxPGwyXuc4xG6+ac2gGIWacbk5DNxo NisA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lirui.org header.s=key1 header.b=KCZ3cXrx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=lirui.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg16-20020a170907971000b0073dced7204bsi13923244ejc.767.2022.10.19.07.04.30; Wed, 19 Oct 2022 07:05:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lirui.org header.s=key1 header.b=KCZ3cXrx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=lirui.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232622AbiJSNqJ (ORCPT + 99 others); Wed, 19 Oct 2022 09:46:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232924AbiJSNpA (ORCPT ); Wed, 19 Oct 2022 09:45:00 -0400 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D910E11C38; Wed, 19 Oct 2022 06:31:48 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lirui.org; s=key1; t=1666186272; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kLONnTrgE41xLuoR7aINxfaHvykieYVHakm2mQu46pE=; b=KCZ3cXrxe+PB+8Vud62pouWmnw8EOrEex984T5Iqz55u/3CuMNV+j9NEpU0qmBBqMQwwno 2kiDr8xHqGnAVtyDZjovRWv0xynLRDYgI2msDGiegwnTNuKz536SnCuyoLj24hxnyyAr2D /qnxY+I1brSoE4oqkqUtTBupqe+KRGPadrgYw+VEbMOQNWJZvtZr58lna8z8kSk38Cswmo Y+XyVQ3WoFbyprmYvjEfITuVJMZZfXmZslH86lkUfJfuxtzmwu1SLSIvwDoySbhb0+epnS BqCzGWNHZiEkOdizwMN6OBUqVj9xtYCxqOTZfMsuOqaTv/7kOdGXP7y9LVO9/A== From: Rui Li To: Alex Shi , Yanteng Si Cc: Jonathan Corbet , Wu XiangCheng , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Rui Li Subject: [PATCH v3 2/2] docs/zh_CN: Add userspace-api/ebpf Chinese translation Date: Wed, 19 Oct 2022 21:30:22 +0800 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Translate the following documents into Chinese: - userspace-api/ebpf/index.rst - userspace-api/ebpf/syscall.rst Signed-off-by: Rui Li --- 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 -- 2.30.2