From patchwork Mon Oct 17 13:27:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rui Li X-Patchwork-Id: 3463 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1448914wrs; Mon, 17 Oct 2022 06:31:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM43fAgCD9LKj8VXqMT4f/crRDwjFq1VF2h3VyPBDzQRGFx1pOpRtxe+r3DWVV1S+341ZAz+ X-Received: by 2002:a05:6402:1f06:b0:457:149d:beaa with SMTP id b6-20020a0564021f0600b00457149dbeaamr10231882edb.238.1666013517644; Mon, 17 Oct 2022 06:31:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666013517; cv=none; d=google.com; s=arc-20160816; b=E2DtRSIS8hB9pHg4LyrnQq3+ACZye7DMd6KZblUZZ4zbKHHSLK3jDmjfFLMJN4hJN6 qdpuI8dDitn3Rd6ySEpMv3GigvGLdYLH2rIsF7ab9Fr4Yz03xsJ6oPhiV1tbMtFIbAut 8C6rpr+pqiXRx9UVRKrblgluQpADThropf/uXwN4UQGtnF5Ojl6pMPeLjUF7jHnRSQBP fAxqgJLGfxGy655+qQtSJGejqfq6CrB7fn+sNazYECfat0pHVrYoIlXch0G3uMu71q5w b6LsJSh7NbJO1hiDnV5jphN41KYNnpFsste7lamQxsW9NMdEqRLCLvsECpLMkmt8ZjCJ d30Q== 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=t1dQDWM4/VSnTQoKiY6vSDDALOOAIL8qqA0imL4WIO4=; b=Xq0qnucVOGbknT+vUXKvCgKRnI2B4MxnOtClVLYub2f7PpOPRX2XS7vY4ng2e1OxHP wO4mwcjoVZu6q42Ir/JnLIb5AagrfFzAXkiHOVQwA1PveVVDltCkcLvOD9Tf5eJ0Wnbt BJb+hG0NW7zM6vQu3byn/3J0PcEslndU6mLvsJuBqGkCOKxIOb1go5IU/fbKpe1hw5Gl 6DS2kr36pmYqZQ/mAwcUULwqbu654uV1JGHZ0ahxcZ2GCKZWXrHPvQESfEcvU7MmaGJ0 neDSvCgklYEulw8qQRqK1vLZyBpFlbp1H/k3cWIXngIy3o7mMGT1dU8v8/BrIIk+5t3Z F+aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lirui.org header.s=key1 header.b=cVW2Ijnp; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o16-20020a170906975000b0078d78760c1asi10558956ejy.95.2022.10.17.06.31.29; Mon, 17 Oct 2022 06:31:57 -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=cVW2Ijnp; 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 S229972AbiJQN1r (ORCPT + 99 others); Mon, 17 Oct 2022 09:27:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229833AbiJQN1g (ORCPT ); Mon, 17 Oct 2022 09:27:36 -0400 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B3595E56D; Mon, 17 Oct 2022 06:27:33 -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=1666013251; 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=t1dQDWM4/VSnTQoKiY6vSDDALOOAIL8qqA0imL4WIO4=; b=cVW2Ijnpl3yuVPTSEwbt8IR4vwmXIZN40rvN3st9EcwEDEffHn4WZccJzE6SqAIer/GM6Z zwt92dsZnr0ICUQ+w89TufdIOeELrqX9EU6sjEAVTo3z6iqhuKptlXddiN+lWr7HLXCGVv zWCKX8lwoRvAUY2Rep7vSUj+gP6FlOUCqJupEhqN8ukXzLpuRmzy7s4t7dAxF5jyGibe4o aWZ2o7uCXkf6DVYrBsPEzJKK+9URxtV/aYEi7i+OkdSjnbdggMNSAFzdyNwtmQqgIX2VJB f94ivLHxfoK3vAeio3lp0gAquA+PTNOGcplnTEmgEyUuSatFAoi8TIfC19Yyfg== From: Rui Li To: Alex Shi , Yanteng Si , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Rui Li Subject: [RESEND PATCH 1/2] docs/zh_CN: Add userspace-api/ebpf Chinese translation Date: Mon, 17 Oct 2022 21:27:04 +0800 Message-Id: <9de67db2daac59bfb9af4c02f262bb43cc63c4c5.1666009558.git.me@lirui.org> In-Reply-To: References: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746941789932562428?= X-GMAIL-MSGID: =?utf-8?q?1746941789932562428?= Translate the following documents into Chinese: - userspace-api/ebpf/index.rst - userspace-api/ebpf/syscall.rst Signed-off-by: Rui Li --- .../zh_CN/userspace-api/ebpf/index.rst | 22 +++++++++++++ .../zh_CN/userspace-api/ebpf/syscall.rst | 31 +++++++++++++++++++ 2 files changed, 53 insertions(+) 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..9f0af275eb69 --- /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..56bfa9bc7887 --- /dev/null +++ b/Documentation/translations/zh_CN/userspace-api/ebpf/syscall.rst @@ -0,0 +1,31 @@ +.. 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() subcommand reference +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. kernel-doc:: include/uapi/linux/bpf.h + :doc: eBPF Syscall Preamble + +.. kernel-doc:: include/uapi/linux/bpf.h + :doc: eBPF Syscall Commands + +.. Links: +.. _man-pages: https://www.kernel.org/doc/man-pages/ +.. _bpf(2): https://man7.org/linux/man-pages/man2/bpf.2.html From patchwork Mon Oct 17 13:27:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rui Li X-Patchwork-Id: 3460 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1448290wrs; Mon, 17 Oct 2022 06:30:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7M/g2j4Rm3cTUjXiyaotqz9peviWLqFLoKIqyTMv3+2YGQnCVyVjtxopouQiGcXESvR8BM X-Received: by 2002:a17:90b:4d0c:b0:20b:c983:2d85 with SMTP id mw12-20020a17090b4d0c00b0020bc9832d85mr33758063pjb.45.1666013452694; Mon, 17 Oct 2022 06:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666013452; cv=none; d=google.com; s=arc-20160816; b=B+Ry5262GzDqOT6O+cYTHRgWMzwqaffdhg7gOKT1VRrlRZg6AT0j/j7ExUQ/ZAYR/n PnsjWmfXCmSh4N+TdNexw91CVC5xbYXfqcVxQj8dWqmKoY/W0JXPnoh7lOVD4Sb3fnCx nPg+d+hsWPPz/2soZx40gthqzpCGpoGbYkDDNkw7bdNUFb1hjIFfa/3cNR9qVR2NFUPB gOnW2IHwUgbiyJqjwMYS8Bg9B8s0a5m4ezjg7cS5uzSKtkruedAnoYBXQn8bHeRvKS7J y9c21qcv8/SaNQgoZ6b5zi/IQVkNdtsut8jqsHB87OCqtpkHkCQ4VsWyGW5eWPn4In4d OsqA== 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=XT97/4ianI21dvpEGBZUSrkd+v0AEJCqTHZ0j4rZrRE=; b=AaxW2G9RwTajJxVCf8GiaWgmO9bs42TbnmRASSNLyf+hKFu9evFt50CJfZCIv3Actn zLMjYZinbP5NmTFjIZ2j5+xoAHBcveNMOHV/Y3kmck4BA47BGHswaI3OGVNu082EqNLZ EgA85K9eB8BBYPdjF8Tho4P+L+0XgRUnLUoW7uKIifnnkUyMnKFYSgCxJUpco1g7gLwT 2kEnt9zfCZfyTPJ6Vkkdv0Edtgo1t8vAS4iunef87knBm+53snb8me09F42fTz2JFS98 8iAWrqiESnagoauPbCwOzsn3BTOF/jla27PaEZd//LWnLFuEpuLzslW8pGr7Cxlo2lOY R77A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lirui.org header.s=key1 header.b=AbtJiFNm; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n10-20020a170902e54a00b0017ead648525si11000745plf.373.2022.10.17.06.30.39; Mon, 17 Oct 2022 06:30:52 -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=AbtJiFNm; 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 S230126AbiJQN1v (ORCPT + 99 others); Mon, 17 Oct 2022 09:27:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229980AbiJQN1i (ORCPT ); Mon, 17 Oct 2022 09:27:38 -0400 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D72D631D8; Mon, 17 Oct 2022 06:27:36 -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=1666013255; 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=XT97/4ianI21dvpEGBZUSrkd+v0AEJCqTHZ0j4rZrRE=; b=AbtJiFNm1eCMnjmcmIdRcfMOy384xBxDlZ5YNpOkfb9P5ZhTJX1rrnjn/egQvFwOQ5oadR 3cEgAZVgwEZ2QDjv/lUxGpT3paqEatsUNNB8sCVk5d6Jh2UknkR7sI+0Crg8tOslRt4r4e SCMpviQCGJXKEbyACempE+XvzQGEQDKIHhu5UycExtOrWNf6vcUJu7WLDFaltV6HM6XBih 8/nYf13ZBNkXWzaeWOhSpC5ouDnqfLzgc45XO7fUDJleQWH5q71cWUwUwNsZBqSCsTSjUg L00YZRJgltLmzYgYxdr1q/Y800cwG1qKE7LI8J52PWQDG1oyJinq0s/hkHaMEw== From: Rui Li To: Alex Shi , Yanteng Si , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Rui Li Subject: [RESEND PATCH 2/2] docs/zh_CN: Add userspace-api/index Chinese translation Date: Mon, 17 Oct 2022 21:27:05 +0800 Message-Id: <455e3da0b5b07058d2b7d09c74388b4789ccc877.1666009558.git.me@lirui.org> In-Reply-To: References: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_40,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746941721809225710?= X-GMAIL-MSGID: =?utf-8?q?1746941721809225710?= Translate userspace-api/index.rst into Chinese, add it into zh_CN/index.rst. Signed-off-by: Rui Li --- Documentation/translations/zh_CN/index.rst | 2 +- .../zh_CN/userspace-api/index.rst | 50 +++++++++++++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 Documentation/translations/zh_CN/userspace-api/index.rst diff --git a/Documentation/translations/zh_CN/index.rst b/Documentation/translations/zh_CN/index.rst index ec99ef5fe990..272414971ce9 100644 --- a/Documentation/translations/zh_CN/index.rst +++ b/Documentation/translations/zh_CN/index.rst @@ -90,12 +90,12 @@ TODOList: admin-guide/index admin-guide/reporting-issues.rst + userspace-api/index TODOList: * 内核构建系统 * 用户空间工具 -* userspace-api/index 也可参考独立于内核文档的 `Linux 手册页 `_ 。 diff --git a/Documentation/translations/zh_CN/userspace-api/index.rst b/Documentation/translations/zh_CN/userspace-api/index.rst new file mode 100644 index 000000000000..4f5bc5530ebd --- /dev/null +++ b/Documentation/translations/zh_CN/userspace-api/index.rst @@ -0,0 +1,50 @@ +.. SPDX-License-Identifier: GPL-2.0 +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/userspace-api/index.rst + +:翻译: + + 李睿 Rui Li + +===================================== +Linux 内核用户空间API指南 +===================================== + +.. _man-pages: https://www.kernel.org/doc/man-pages/ + +尽管许多用户空间API的文档被记录在别处(特别是在 man-pages_ 项目中),有关用户 +空间的部分信息仍然可以在代码树中被找到。这个手册意在成为这些信息聚集的地方。 + +.. class:: toc-title + + 目录 + +.. toctree:: + :maxdepth: 2 + + ebpf/index + +TODOList: + +* no_new_privs +* seccomp_filter +* landlock +* unshare +* spec_ctrl +* accelerators/ocxl +* ebpf/index +* ioctl/index +* iommu +* media/index +* netlink/index +* sysfs-platform_profile +* vduse +* futex2 + +.. only:: subproject and html + + Indices + ======= + + * :ref:`genindex` \ No newline at end of file