From 4d5649fc08e2e465a424be8a9ed126d24be58cbf Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Mon, 16 Aug 2021 21:19:16 +0200 Subject: [PATCH] Improve wording (there's only one kernel) --- lkmpg.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lkmpg.tex b/lkmpg.tex index f177b51..08ec6d7 100644 --- a/lkmpg.tex +++ b/lkmpg.tex @@ -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. 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. 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. -- 2.39.5