Skip to content

Commit 2cc3917

Browse files
masahir0ymcgrof
authored andcommitted
doc: module: update file references
Adjust documents to the file moves made by commit cfc1d27 ("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 <[email protected]> Acked-by: Yanteng Si <[email protected]> Signed-off-by: Luis Chamberlain <[email protected]>
1 parent f963ef1 commit 2cc3917

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

Documentation/core-api/kernel-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ Module Loading
223223
Inter Module support
224224
--------------------
225225

226-
Refer to the file kernel/module.c for more information.
226+
Refer to the files in kernel/module/ for more information.
227227

228228
Hardware Interfaces
229229
===================

Documentation/core-api/symbol-namespaces.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ namespace ``USB_STORAGE``, use::
5151
The corresponding ksymtab entry struct ``kernel_symbol`` will have the member
5252
``namespace`` set accordingly. A symbol that is exported without a namespace will
5353
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.
5656

5757
2.2 Using the DEFAULT_SYMBOL_NAMESPACE define
5858
=============================================

Documentation/livepatch/module-elf-format.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,11 @@ module->symtab.
210210
=====================================
211211
Normally, a stripped down copy of a module's symbol table (containing only
212212
"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
218218
preserved in order for apply_relocate_add() to find the right symbol.
219219

220220
For example, take this particular rela from a livepatch module:::

Documentation/translations/it_IT/core-api/symbol-namespaces.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ Di conseguenza, nella tabella dei simboli del kernel ci sarà una voce
5050
rappresentata dalla struttura ``kernel_symbol`` che avrà il campo
5151
``namespace`` (spazio dei nomi) impostato. Un simbolo esportato senza uno spazio
5252
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.
5656

5757
2.2 Usare il simbolo di preprocessore DEFAULT_SYMBOL_NAMESPACE
5858
==============================================================

Documentation/translations/zh_CN/core-api/kernel-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ kernel/kmod.c
224224
模块接口支持
225225
------------
226226

227-
更多信息请参考文件kernel/module.c
227+
更多信息请参阅kernel/module/目录下的文件
228228

229229
硬件接口
230230
========

Documentation/translations/zh_CN/core-api/symbol-namespaces.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

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

5757
2.2 使用DEFAULT_SYMBOL_NAMESPACE定义
5858
====================================

0 commit comments

Comments
 (0)