doc: module: update file references

Adjust documents to the file moves made by commit cfc1d27789 ("module:
Move all into module/").

Thanks to Yanteng Si for helping me to update
Documentation/translations/zh_CN/core-api/kernel-api.rst

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Yanteng Si <siyanteng@loongson.cn>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
This commit is contained in:
Masahiro Yamada 2022-06-15 06:33:03 +09:00 committed by Luis Chamberlain
parent f963ef1239
commit 2cc39179ac
6 changed files with 13 additions and 13 deletions

View File

@ -223,7 +223,7 @@ Module Loading
Inter Module support Inter Module support
-------------------- --------------------
Refer to the file kernel/module.c for more information. Refer to the files in kernel/module/ for more information.
Hardware Interfaces Hardware Interfaces
=================== ===================

View File

@ -51,8 +51,8 @@ namespace ``USB_STORAGE``, use::
The corresponding ksymtab entry struct ``kernel_symbol`` will have the member The corresponding ksymtab entry struct ``kernel_symbol`` will have the member
``namespace`` set accordingly. A symbol that is exported without a namespace will ``namespace`` set accordingly. A symbol that is exported without a namespace will
refer to ``NULL``. There is no default namespace if none is defined. ``modpost`` refer to ``NULL``. There is no default namespace if none is defined. ``modpost``
and kernel/module.c make use the namespace at build time or module load time, and kernel/module/main.c make use the namespace at build time or module load
respectively. time, respectively.
2.2 Using the DEFAULT_SYMBOL_NAMESPACE define 2.2 Using the DEFAULT_SYMBOL_NAMESPACE define
============================================= =============================================

View File

@ -210,11 +210,11 @@ module->symtab.
===================================== =====================================
Normally, a stripped down copy of a module's symbol table (containing only Normally, a stripped down copy of a module's symbol table (containing only
"core" symbols) is made available through module->symtab (See layout_symtab() "core" symbols) is made available through module->symtab (See layout_symtab()
in kernel/module.c). For livepatch modules, the symbol table copied into memory in kernel/module/kallsyms.c). For livepatch modules, the symbol table copied
on module load must be exactly the same as the symbol table produced when the into memory on module load must be exactly the same as the symbol table produced
patch module was compiled. This is because the relocations in each livepatch when the patch module was compiled. This is because the relocations in each
relocation section refer to their respective symbols with their symbol indices, livepatch relocation section refer to their respective symbols with their symbol
and the original symbol indices (and thus the symtab ordering) must be indices, and the original symbol indices (and thus the symtab ordering) must be
preserved in order for apply_relocate_add() to find the right symbol. preserved in order for apply_relocate_add() to find the right symbol.
For example, take this particular rela from a livepatch module::: For example, take this particular rela from a livepatch module:::

View File

@ -50,9 +50,9 @@ Di conseguenza, nella tabella dei simboli del kernel ci sarà una voce
rappresentata dalla struttura ``kernel_symbol`` che avrà il campo rappresentata dalla struttura ``kernel_symbol`` che avrà il campo
``namespace`` (spazio dei nomi) impostato. Un simbolo esportato senza uno spazio ``namespace`` (spazio dei nomi) impostato. Un simbolo esportato senza uno spazio
dei nomi avrà questo campo impostato a ``NULL``. Non esiste uno spazio dei nomi dei nomi avrà questo campo impostato a ``NULL``. Non esiste uno spazio dei nomi
di base. Il programma ``modpost`` e il codice in kernel/module.c usano lo spazio di base. Il programma ``modpost`` e il codice in kernel/module/main.c usano lo
dei nomi, rispettivamente, durante la compilazione e durante il caricamento spazio dei nomi, rispettivamente, durante la compilazione e durante il
di un modulo. caricamento di un modulo.
2.2 Usare il simbolo di preprocessore DEFAULT_SYMBOL_NAMESPACE 2.2 Usare il simbolo di preprocessore DEFAULT_SYMBOL_NAMESPACE
============================================================== ==============================================================

View File

@ -224,7 +224,7 @@ kernel/kmod.c
模块接口支持 模块接口支持
------------ ------------
更多信息请参考文件kernel/module.c 更多信息请参阅kernel/module/目录下的文件
硬件接口 硬件接口
======== ========

View File

@ -52,7 +52,7 @@
相应的 ksymtab 条目结构体 ``kernel_symbol`` 将有相应的成员 ``命名空间`` 集。 相应的 ksymtab 条目结构体 ``kernel_symbol`` 将有相应的成员 ``命名空间`` 集。
导出时未指明命名空间的符号将指向 ``NULL`` 。如果没有定义命名空间,则默认没有。 导出时未指明命名空间的符号将指向 ``NULL`` 。如果没有定义命名空间,则默认没有。
``modpost`` 和kernel/module.c分别在构建时或模块加载时使用名称空间。 ``modpost`` 和kernel/module/main.c分别在构建时或模块加载时使用名称空间。
2.2 使用DEFAULT_SYMBOL_NAMESPACE定义 2.2 使用DEFAULT_SYMBOL_NAMESPACE定义
==================================== ====================================