Skip to content

Commit 85ee0ec

Browse files
committed
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: #142
1 parent 19521bc commit 85ee0ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/syscall.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
#include <linux/uaccess.h>
2525

2626
/* The way we access "sys_call_table" varies as kernel internal changes.
27-
* - ver <= 5.4 : manual symbol lookup
28-
* - 5.4 < ver < 5.7 : kallsyms_lookup_name
29-
* - 5.7 <= ver : Kprobes or specific kernel module parameter
27+
* - Prior to v5.4 : manual symbol lookup
28+
* - v5.5 to v5.6 : use kallsyms_lookup_name()
29+
* - v5.7+ : Kprobes or specific kernel module parameter
3030
*/
3131

3232
/* The in-kernel calls to the ksys_close() syscall were removed in Linux v5.11+.

0 commit comments

Comments
 (0)