Skip to contentSkip to conversation

docs/zh_CN: Add userspace-api/index and ebpf Chinese translation

PATCH In review Rui Li 2 participants 4 messages Oct 18, 2022 – Oct 19, 2022

Subsystems (2)
lore
Share & tools
lore

Rui Li

author
#0 lore raw

v2 cover docs/zh_CN: Add userspace-api/index and ebpf Chinese translation

Translate the following documents into Chinese:

- Documentation/translations/zh_CN/userspace-api/ebpf/index.rst
- Documentation/translations/zh_CN/userspace-api/ebpf/syscall.rst
- Documentation/translations/zh_CN/userspace-api/index.rst

Add userspace-api into the menu of zh_CN index.

Rui Li (2):
docs/zh_CN: Add userspace-api/ebpf Chinese translation docs/zh_CN: Add userspace-api/index Chinese translation

 Documentation/translations/zh_CN/index.rst    |  2 +-
 .../zh_CN/userspace-api/ebpf/index.rst        | 22 ++++++++
 .../zh_CN/userspace-api/ebpf/syscall.rst      | 31 +++++++++++
 .../zh_CN/userspace-api/index.rst             | 51 +++++++++++++++++++
 4 files changed, 105 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
 create mode 100644 Documentation/translations/zh_CN/userspace-api/index.rst
Signature · 1 line
2.30.2
author
#1 lore raw

PATCH v2 1/2 docs/zh_CN: Add userspace-api/ebpf Chinese translation

Translate the following documents into Chinese:

- userspace-api/ebpf/index.rst
- userspace-api/ebpf/syscall.rst

---
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      | 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
Documentation/translations/zh_CN/userspace-api/ebpf/index.rst new file +22 -0
new file mode 100644
index 000000000000..d52c7052f101
@@ -0,0 +1,22 @@
+.. SPDX-License-Identifier: GPL-2.0
+.. include:: ../../disclaimer-zh_CN.rst
+
+:Original: Documentation/userspace-api/ebpf/index.rst
+
+:翻译:
+
+ 李睿 Rui Li <[email protected]>
+
+eBPF 用户空间API
+================
+
+eBPF是一种在Linux内核中提供沙箱化运行环境的机制,它可以在不改变内核源码或加载
+内核模块的情况下扩展运行时和编写工具。eBPF程序能够被附加到各种内核子系统中,包
+括网络,跟踪和Linux安全模块(LSM)等。
+
+关于eBPF的内部内核文档,请查看 Documentation/bpf/index.rst 。
+
+.. toctree::
+   :maxdepth: 1
+
+   syscall
Documentation/translations/zh_CN/userspace-api/ebpf/syscall.rst new file +31 -0
new file mode 100644
index 000000000000..17515728f544
@@ -0,0 +1,31 @@
+.. SPDX-License-Identifier: GPL-2.0
+.. include:: ../../disclaimer-zh_CN.rst
+
+:Original: Documentation/userspace-api/ebpf/syscall.rst
+
+:翻译:
+
+ 李睿 Rui Li <[email protected]>
+
+eBPF Syscall
+------------
+
+:作者:
+    - Alexei Starovoitov <[email protected]>
+    - Joe Stringer <[email protected]>
+    - Michael Kerrisk <[email protected]>
+
+bpf syscall的主要信息可以在 `man-pages`_ 中的 `bpf(2)`_ 找到。
+
+bpf() 子命令参考
+~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+.. 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
Signature · 1 line
2.30.2
#2 lore raw

Re: [PATCH v2 1/2] docs/zh_CN: Add userspace-api/ebpf Chinese translation

Quoted 69 lines · Rui Li

Translate the following documents into Chinese:

- userspace-api/ebpf/index.rst
- userspace-api/ebpf/syscall.rst

---
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      | 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

Documentation/translations/zh_CN/userspace-api/ebpf/index.rst new file +22 -0
new file mode 100644
index 000000000000..d52c7052f101
@@ -0,0 +1,22 @@
+.. SPDX-License-Identifier: GPL-2.0
+.. include:: ../../disclaimer-zh_CN.rst
+
+:Original: Documentation/userspace-api/ebpf/index.rst
+
+:翻译:
+
+ 李睿 Rui Li <[email protected]>
+
+eBPF 用户空间API
+================
+
+eBPF是一种在Linux内核中提供沙箱化运行环境的机制,它可以在不改变内核源码或加载
+内核模块的情况下扩展运行时和编写工具。eBPF程序能够被附加到各种内核子系统中,包
+括网络,跟踪和Linux安全模块(LSM)等。
+
+关于eBPF的内部内核文档,请查看 Documentation/bpf/index.rst 。
+
+.. toctree::
+   :maxdepth: 1
+
+   syscall
Documentation/translations/zh_CN/userspace-api/ebpf/syscall.rst new file +17 -0
new file mode 100644
index 000000000000..17515728f544
@@ -0,0 +1,31 @@
+.. SPDX-License-Identifier: GPL-2.0
+.. include:: ../../disclaimer-zh_CN.rst
+
+:Original: Documentation/userspace-api/ebpf/syscall.rst
+
+:翻译:
+
+ 李睿 Rui Li <[email protected]>
+
+eBPF Syscall
+------------
+
+:作者:
+    - Alexei Starovoitov <[email protected]>
+    - Joe Stringer <[email protected]>
+    - Michael Kerrisk <[email protected]>
+

Documentation/translations/zh_CN/userspace-api/ebpf/syscall.rst line 27

Quoted 10 lines
Documentation/translations/zh_CN/userspace-api/ebpf/syscall.rst new file +10 -0
+bpf syscall的主要信息可以在 `man-pages`_ 中的 `bpf(2)`_ 找到。
+
+bpf() 子命令参考
+~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+.. kernel-doc:: include/uapi/linux/bpf.h
+   :doc: eBPF Syscall Preamble
+
+.. kernel-doc:: include/uapi/linux/bpf.h
+   :doc: eBPF Syscall Commands

This generates a lot of documentation in English.

See Documentation/translations/zh_CN/core-api/kernel-api.rst

Thanks,

Yanteng

Quoted 4 lines
Documentation/translations/zh_CN/userspace-api/ebpf/syscall.rst new file +4 -0
+
+.. Links:
+.. _man-pages: https://www.kernel.org/doc/man-pages/
+.. _bpf(2): https://man7.org/linux/man-pages/man2/bpf.2.html
author
#3 lore raw

PATCH v2 2/2 docs/zh_CN: Add userspace-api/index Chinese translation

In reply to Rui Li

Translate userspace-api/index.rst into Chinese, add it into zh_CN/index.rst.

---
Changes since v1:
- Align title
- Change some translation

---
 Documentation/translations/zh_CN/index.rst    |  2 +-
 .../zh_CN/userspace-api/index.rst             | 51 +++++++++++++++++++
 2 files changed, 52 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/translations/zh_CN/userspace-api/index.rst
Documentation/translations/zh_CN/index.rst +1 -1
index ec99ef5fe990..272414971ce9 100644
@@ -90,12 +90,12 @@ TODOList:
 
    admin-guide/index
    admin-guide/reporting-issues.rst
+   userspace-api/index
 
 TODOList:
 
 * 内核构建系统 <kbuild/index>
 * 用户空间工具 <tools/index>
-* userspace-api/index
 
 也可参考独立于内核文档的 `Linux 手册页 <https://www.kernel.org/doc/man-pages/>`_ 。
 
Documentation/translations/zh_CN/userspace-api/index.rst new file +51 -0

51 lines not on this page · raw message

Signature · 1 line
2.30.2