mirror of
https://github.com/AuxXxilium/arc-lkm.git
synced 2024-11-23 23:00:57 +07:00
d288da5003
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
23 lines
530 B
C
Executable File
23 lines
530 B
C
Executable File
#ifndef REDPILL_SYMBOL_HELPER_H
|
|
#define REDPILL_SYMBOL_HELPER_H
|
|
|
|
#include <linux/types.h> //bool
|
|
|
|
/**
|
|
* Workaround for kallsyms_lookup_name in kernels > 5.7
|
|
* https://github.com/xcellerator/linux_kernel_hacking/issues/3
|
|
*/
|
|
extern unsigned long (*kln_func)(const char*);
|
|
int get_kln_p(void);
|
|
|
|
/**
|
|
* Check if a given symbol exists
|
|
*
|
|
* This function will return true for both public and private kernel symbols
|
|
*
|
|
* @param name name of the symbol
|
|
*/
|
|
bool kernel_has_symbol(const char *name);
|
|
|
|
#endif //REDPILL_SYMBOL_HELPER_H
|