W Wu X.C. #
Message details and related content
On Thu, Apr 29, 2021 at 10:29:21AM +0800, teng sterling wrote:
[...]quoted
quoted
quoted
+ +符号可以用不同的方法导出到命名空间。所有这些都在改变 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. [...]
quoted
quoted
quoted
+对模块作者来说,一个典型的情况是::maybe 以下情况可能很典型OK!quoted
quoted
+ + - write code that depends on a symbol from a not importednamespacequoted
quoted
+ - `make` + - notice the warning of modpost telling about a missing import + - run `make nsdeps` to add the import to the correct codelocation- 编写依赖未导入命名空间的符号的代码 - ``make`` - 注意 ``modpost`` 的警告,提醒你有一个丢失的导入。 - 运行 ``make nsdeps``将导入添加到正确的代码位置。quoted
quoted
quoted
+ +对于引入命名空间的子系统维护者来说,其步骤非常相似。同样,make nsdeps最终将 +为树内模块添加缺失的命名空间导入:: + + - move or add symbols to a namespace (e.g. withEXPORT_SYMBOL_NS())quoted
quoted
+ - `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 codelocationquoted
+
Pay attention to indentation ;)
- 向命名空间转移或添加符号(例如,使用EXPORT_SYMBOL_NS())。 - `make e`(最好是用allmodconfig来覆盖所有的内核模块)。
``make``
- 注意 ``modpost`` 的警告,提醒你有一个丢失的导入。 - 运行 ``maknsdeps``将导入添加到正确的代码位置。quoted
quoted
above two blocks seem need to translateOK!quoted
Reviewed-by: Wu XiangCheng <redacted> Thanks Wu X.C.