From: Alex Shi <seakeel@gmail.com>
To: Yanteng Si <siyanteng@loongson.cn>,
corbet@lwn.net, alexs@kernel.org, bobwxc@email.cn
Cc: chenhuacai@kernel.org, jiaxun.yang@flygoat.com,
linux-doc@vger.kernel.org, realpuyuwang@gmail.com,
siyanteng01@gmail.com
Subject: Re: [PATCH 5/6] docs/zh_CN: add core-api boot-time-mm translation
Date: Mon, 5 Jul 2021 21:21:14 +0800 [thread overview]
Message-ID: <a4d0d044-7d26-d515-3748-42d0d679a6e9@gmail.com> (raw)
In-Reply-To: <cf5acd0694a2f9ed15630a9d3f719861c6939708.1625048200.git.siyanteng@loongson.cn>
Reviewed-by: Alex Shi <alexs@kernel.org>
On 6/30/21 6:23 PM, Yanteng Si wrote:
> Translate Documentation/core-api/boot-time-mm.rst into Chinese.
>
> Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
> ---
> .../zh_CN/core-api/boot-time-mm.rst | 49 +++++++++++++++++++
> .../translations/zh_CN/core-api/index.rst | 2 +-
> 2 files changed, 50 insertions(+), 1 deletion(-)
> create mode 100644 Documentation/translations/zh_CN/core-api/boot-time-mm.rst
>
> diff --git a/Documentation/translations/zh_CN/core-api/boot-time-mm.rst b/Documentation/translations/zh_CN/core-api/boot-time-mm.rst
> new file mode 100644
> index 000000000000..12a54ca503c3
> --- /dev/null
> +++ b/Documentation/translations/zh_CN/core-api/boot-time-mm.rst
> @@ -0,0 +1,49 @@
> +.. include:: ../disclaimer-zh_CN.rst
> +
> +:Original: Documentation/core-api/boot-time-mm.rst
> +
> +:翻译:
> +
> + 司延腾 Yanteng Si <siyanteng@loongson.cn>
> +
> +:校译:
> +
> +
> +
> +.. _cn_core-api_boot-time-mm:
> +
> +================
> +启动时的内存管理
> +================
> +
> +系统初始化早期不能使用“正常”的内存管理,只是因为它还没有被设置好。但是仍
> +然需要为各种数据结构分配内存,例如为物理页分配器分配内存。
> +
> +一个叫做 ``memblock`` 的专用分配器执行启动时的内存管理。特定架构的初始化
> +必须在setup_arch()中设置它,并在mem_init()函数中移除它。
> +
> +一旦早期的内存管理可用,它就为内存分配提供了各种函数和宏。分配请求可以指向
> +第一个(也可能是唯一的)节点或NUMA系统中的某个特定节点。有一些API变体在分
> +配失败时panic,也有一些不panic的。
> +
> +Memblock还提供了各种控制其自身行为的API。
> +
> +Memblock概述
> +============
> +
> +该API在以下内核代码中:
> +
> +mm/memblock.c
> +
> +
> +函数和结构体
> +============
> +
> +下面是关于memblock数据结构、函数和宏的描述。其中一些实际上是内部(内联函数注释)
> +的,但由于它们被记录下来,漏掉它们是很愚蠢的。此外,阅读内部函数的注释可以帮助理
> +解引擎盖下真正发生的事情。
> +
> +该API在以下内核代码中:
> +
> +include/linux/memblock.h
> +mm/memblock.c
> diff --git a/Documentation/translations/zh_CN/core-api/index.rst b/Documentation/translations/zh_CN/core-api/index.rst
> index 1e8c5963c499..1d6fecd69c3b 100644
> --- a/Documentation/translations/zh_CN/core-api/index.rst
> +++ b/Documentation/translations/zh_CN/core-api/index.rst
> @@ -103,6 +103,7 @@ Todolist:
> unaligned-memory-access
> mm-api
> genalloc
> + boot-time-mm
>
> Todolist:
>
> @@ -111,7 +112,6 @@ Todolist:
> dma-attributes
> dma-isa-lpc
> pin_user_pages
> - boot-time-mm
> gfp_mask-from-fs-io
>
> 内核调试的接口
>
next prev parent reply other threads:[~2021-07-05 13:21 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-30 10:23 [PATCH 0/6] docs/zh_CN: add core-api Memory management translation Yanteng Si
2021-06-30 10:23 ` [PATCH 1/6] docs/zh_CN: add core-api memory-allocation translation Yanteng Si
2021-07-05 12:56 ` Alex Shi
2021-07-06 12:41 ` yanteng si
2021-06-30 10:23 ` [PATCH 2/6] docs/zh_CN: add core-api unaligned-memory-access translation Yanteng Si
2021-07-05 13:17 ` Alex Shi
2021-07-06 12:45 ` yanteng si
2021-06-30 10:23 ` [PATCH 3/6] docs/zh_CN: add core-api mm-api translation Yanteng Si
2021-07-05 13:21 ` Alex Shi
2021-06-30 10:23 ` [PATCH 4/6] docs/zh_CN: add core-api genalloc translation Yanteng Si
2021-06-30 10:23 ` [PATCH 5/6] docs/zh_CN: add core-api boot-time-mm translation Yanteng Si
2021-07-05 13:21 ` Alex Shi [this message]
2021-06-30 10:23 ` [PATCH 6/6] docs/zh_CN: add core-api gfp_mask-from-fs-io translation Yanteng Si
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=a4d0d044-7d26-d515-3748-42d0d679a6e9@gmail.com \
--to=seakeel@gmail.com \
--cc=alexs@kernel.org \
--cc=bobwxc@email.cn \
--cc=chenhuacai@kernel.org \
--cc=corbet@lwn.net \
--cc=jiaxun.yang@flygoat.com \
--cc=linux-doc@vger.kernel.org \
--cc=realpuyuwang@gmail.com \
--cc=siyanteng01@gmail.com \
--cc=siyanteng@loongson.cn \
/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;
as well as URLs for NNTP newsgroup(s).