mirror of
https://github.com/sysprog21/lkmpg.git
synced 2024-11-26 10:13:42 +08:00
Improve wording (there's only one kernel)
This commit is contained in:
parent
3e05439b6d
commit
4d5649fc08
|
@ -646,7 +646,7 @@ In large projects, effort must be made to remember reserved names, and to find w
|
||||||
|
|
||||||
When writing kernel code, even the smallest module will be linked against the entire kernel, so this is definitely an issue.
|
When writing kernel code, even the smallest module will be linked against the entire kernel, so this is definitely an issue.
|
||||||
The best way to deal with this is to declare all your variables as static and to use a well-defined prefix for your symbols.
|
The best way to deal with this is to declare all your variables as static and to use a well-defined prefix for your symbols.
|
||||||
By convention, all kernel prefixes are lowercase. If you do not want to declare everything as static, another option is to declare a symbol table and register it with a kernel.
|
By convention, all kernel prefixes are lowercase. If you do not want to declare everything as static, another option is to declare a symbol table and register it with the kernel.
|
||||||
We will get to this later.
|
We will get to this later.
|
||||||
|
|
||||||
The file \verb|/proc/kallsyms| holds all the symbols that the kernel knows about and which are therefore accessible to your modules since they share the kernel's codespace.
|
The file \verb|/proc/kallsyms| holds all the symbols that the kernel knows about and which are therefore accessible to your modules since they share the kernel's codespace.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user