From: linD026 Date: Wed, 16 Mar 2022 15:17:31 +0000 (+0800) Subject: Improve the description of finding syscall table X-Git-Tag: latest~68^2 X-Git-Url: https://www.ivnss.com/gitweb/?a=commitdiff_plain;h=85ee0ec67b15c1545b0020a7ea8ccf52ab3eb400;p=lkmpg Improve the description of finding syscall table Presently, the representation of showing which version will use the method to find out the system call table is vague. Related discussion: * sysprog21/lkmpg: https://github.com/sysprog21/lkmpg/pull/142 --- diff --git a/examples/syscall.c b/examples/syscall.c index e8071ad..4d0728a 100644 --- a/examples/syscall.c +++ b/examples/syscall.c @@ -24,9 +24,9 @@ #include /* The way we access "sys_call_table" varies as kernel internal changes. - * - ver <= 5.4 : manual symbol lookup - * - 5.4 < ver < 5.7 : kallsyms_lookup_name - * - 5.7 <= ver : Kprobes or specific kernel module parameter + * - Prior to v5.4 : manual symbol lookup + * - v5.5 to v5.6 : use kallsyms_lookup_name() + * - v5.7+ : Kprobes or specific kernel module parameter */ /* The in-kernel calls to the ksys_close() syscall were removed in Linux v5.11+.