From 6b6083fca2d0175dd6d167658190f0901300a14e Mon Sep 17 00:00:00 2001 From: Jim Huang Date: Mon, 9 Aug 2021 23:59:59 +0800 Subject: [PATCH] Remove out-of-date information --- lkmpg.tex | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lkmpg.tex b/lkmpg.tex index 1327a46..8924bc5 100644 --- a/lkmpg.tex +++ b/lkmpg.tex @@ -929,10 +929,7 @@ In most cases, the device files will also remain the same. On the other hand, th There are differences between different kernel versions, and if you want to support multiple kernel versions, you will find yourself having to code conditional compilation directives. The way to do this to compare the macro \cpp|LINUX_VERSION_CODE| to the macro \cpp|KERNEL_VERSION|. -In version a.b.c of the kernel, the value of this macro would be \(2^{16}a+2^{8}b+c\). - -While previous versions of this guide showed how you can write backward compatible code with such constructs in great detail, we decided to break with this tradition for the better. -People interested in doing such might now use a LKMPG with a version matching to their kernel. +In version \verb|a.b.c| of the kernel, the value of this macro would be \(2^{16}a+2^{8}b+c\). \section{The /proc File System} \label{sec:procfs} -- 2.39.5