# Re: \[PATCH\] docs/zh\_CN: add core-api symbol-namespaces.rst translation

- From: Wu X.C. \<hidden\>
- Date: 2021-04-29 05:23:04 
- List: linux-doc
- Page: https://ratatoskr.run/linux-doc/2021/04/8525697
- Thread: https://ratatoskr.run/linux-doc/2021/04/8525697/t.md

```text
On Thu, Apr 29, 2021 at 10:29:21AM +0800, teng sterling wrote:
[...]
> > > >+
> > > >+符号可以用不同的方法导出到命名空间。所有这些都在改变 EXPORT_SYMBOL 和伙伴（friends）
> > > >+被检测到的方式，以创建 ksymtab 条目。
> > >
> > > ？？
> > To be honest, I'm not sure I understood the original document correctly.
> >
> now  I'm sure.
> 符号可以用不同的方法导出到命名空间。所有这些都在改变 EXPORT_SYMBOL 和与之类似的那些宏 被检测到的方式，以创建 ksymtab 条目。
> OK?
> 

Yeah.

[...]
> > > >+对模块作者来说，一个典型的情况是::
> > >
> > > maybe
> > > 以下情况可能很典型
> > OK!
> > >
> > > >+
> > > >+      - write code that depends on a symbol from a not imported
> > namespace
> > > >+      - `make`
> > > >+      - notice the warning of modpost telling about a missing import
> > > >+      - run `make nsdeps` to add the import to the correct code
> > location
> >
>    - 编写依赖未导入命名空间的符号的代码
>    - ``make``
>    - 注意 ``modpost`` 的警告，提醒你有一个丢失的导入。
>    - 运行 ``make nsdeps``将导入添加到正确的代码位置。
> 
> > > >+
> > > >+对于引入命名空间的子系统维护者来说，其步骤非常相似。同样，make nsdeps最终将
> > > >+为树内模块添加缺失的命名空间导入::
> > > >+
> > > >+      - move or add symbols to a namespace (e.g. with
> > EXPORT_SYMBOL_NS())
> > > >+      - `make` (preferably with an allmodconfig to cover all in-kernel
> > > >+        modules)
> > > >+      - notice the warning of modpost telling about a missing import
> > > >+      - run `make nsdeps` to add the import to the correct code
> > location
> >
> > >+
> >

Pay attention to indentation ;)

> - 向命名空间转移或添加符号（例如，使用EXPORT_SYMBOL_NS()）。
> - `make e`（最好是用allmodconfig来覆盖所有的内核模块）。

``make``

> - 注意 ``modpost`` 的警告，提醒你有一个丢失的导入。
> - 运行 ``maknsdeps``将导入添加到正确的代码位置。
> 
> > >
> > > above two blocks seem need to translate
> > OK!
> > >

Reviewed-by: Wu XiangCheng <redacted>

Thanks

Wu X.C.
```

## Attachments

- [signature.asc](https://ratatoskr.run/linux-doc/2021/04/8525697/attachment/0) (application/pgp-signature, 659 bytes)
