Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

doc: module: update file references

Adjust documents to the file moves made by commit cfc1d277891e ("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>

authored by

Masahiro Yamada and committed by
Luis Chamberlain
2cc39179 f963ef12

+13 -13
+1 -1
Documentation/core-api/kernel-api.rst
··· 223 223 Inter Module support 224 224 -------------------- 225 225 226 - Refer to the file kernel/module.c for more information. 226 + Refer to the files in kernel/module/ for more information. 227 227 228 228 Hardware Interfaces 229 229 ===================
+2 -2
Documentation/core-api/symbol-namespaces.rst
··· 51 51 The corresponding ksymtab entry struct ``kernel_symbol`` will have the member 52 52 ``namespace`` set accordingly. A symbol that is exported without a namespace will 53 53 refer to ``NULL``. There is no default namespace if none is defined. ``modpost`` 54 - and kernel/module.c make use the namespace at build time or module load time, 55 - respectively. 54 + and kernel/module/main.c make use the namespace at build time or module load 55 + time, respectively. 56 56 57 57 2.2 Using the DEFAULT_SYMBOL_NAMESPACE define 58 58 =============================================
+5 -5
Documentation/livepatch/module-elf-format.rst
··· 210 210 ===================================== 211 211 Normally, a stripped down copy of a module's symbol table (containing only 212 212 "core" symbols) is made available through module->symtab (See layout_symtab() 213 - in kernel/module.c). For livepatch modules, the symbol table copied into memory 214 - on module load must be exactly the same as the symbol table produced when the 215 - patch module was compiled. This is because the relocations in each livepatch 216 - relocation section refer to their respective symbols with their symbol indices, 217 - and the original symbol indices (and thus the symtab ordering) must be 213 + in kernel/module/kallsyms.c). For livepatch modules, the symbol table copied 214 + into memory on module load must be exactly the same as the symbol table produced 215 + when the patch module was compiled. This is because the relocations in each 216 + livepatch relocation section refer to their respective symbols with their symbol 217 + indices, and the original symbol indices (and thus the symtab ordering) must be 218 218 preserved in order for apply_relocate_add() to find the right symbol. 219 219 220 220 For example, take this particular rela from a livepatch module:::
+3 -3
Documentation/translations/it_IT/core-api/symbol-namespaces.rst
··· 50 50 rappresentata dalla struttura ``kernel_symbol`` che avrà il campo 51 51 ``namespace`` (spazio dei nomi) impostato. Un simbolo esportato senza uno spazio 52 52 dei nomi avrà questo campo impostato a ``NULL``. Non esiste uno spazio dei nomi 53 - di base. Il programma ``modpost`` e il codice in kernel/module.c usano lo spazio 54 - dei nomi, rispettivamente, durante la compilazione e durante il caricamento 55 - di un modulo. 53 + di base. Il programma ``modpost`` e il codice in kernel/module/main.c usano lo 54 + spazio dei nomi, rispettivamente, durante la compilazione e durante il 55 + caricamento di un modulo. 56 56 57 57 2.2 Usare il simbolo di preprocessore DEFAULT_SYMBOL_NAMESPACE 58 58 ==============================================================
+1 -1
Documentation/translations/zh_CN/core-api/kernel-api.rst
··· 224 224 模块接口支持 225 225 ------------ 226 226 227 - 更多信息请参考文件kernel/module.c。 227 + 更多信息请参阅kernel/module/目录下的文件。 228 228 229 229 硬件接口 230 230 ========
+1 -1
Documentation/translations/zh_CN/core-api/symbol-namespaces.rst
··· 52 52 53 53 相应的 ksymtab 条目结构体 ``kernel_symbol`` 将有相应的成员 ``命名空间`` 集。 54 54 导出时未指明命名空间的符号将指向 ``NULL`` 。如果没有定义命名空间,则默认没有。 55 - ``modpost`` 和kernel/module.c分别在构建时或模块加载时使用名称空间。 55 + ``modpost`` 和kernel/module/main.c分别在构建时或模块加载时使用名称空间。 56 56 57 57 2.2 使用DEFAULT_SYMBOL_NAMESPACE定义 58 58 ====================================