Skip to content

Commit 60bed94

Browse files
authored
Merge pull request #143 from linD026/master
Improve the description of finding syscall table
2 parents 19521bc + 85ee0ec commit 60bed94

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)