Blame kpatch-build/lookup.h
|
Packit Service |
ac8aad |
#ifndef _LOOKUP_H_
|
|
Packit Service |
ac8aad |
#define _LOOKUP_H_
|
|
Packit Service |
ac8aad |
|
|
Packit Service |
ac8aad |
struct lookup_table;
|
|
Packit Service |
ac8aad |
|
|
Packit Service |
ac8aad |
struct lookup_result {
|
|
Packit Service |
ac8aad |
unsigned long value;
|
|
Packit Service |
ac8aad |
unsigned long size;
|
|
Packit Service |
ac8aad |
unsigned long pos;
|
|
Packit Service |
ac8aad |
};
|
|
Packit Service |
ac8aad |
|
|
Packit Service |
ac8aad |
struct sym_compare_type {
|
|
Packit Service |
ac8aad |
char *name;
|
|
Packit Service |
ac8aad |
int type;
|
|
Packit Service |
ac8aad |
};
|
|
Packit Service |
ac8aad |
|
|
Packit Service |
ac8aad |
struct lookup_table *lookup_open(char *symtab_path, char *symvers_path,
|
|
Packit Service |
ac8aad |
char *hint, struct sym_compare_type *locals);
|
|
Packit Service |
ac8aad |
void lookup_close(struct lookup_table *table);
|
|
Packit Service |
ac8aad |
int lookup_local_symbol(struct lookup_table *table, char *name,
|
|
Packit Service |
ac8aad |
struct lookup_result *result);
|
|
Packit Service |
ac8aad |
int lookup_global_symbol(struct lookup_table *table, char *name,
|
|
Packit Service |
ac8aad |
struct lookup_result *result);
|
|
Packit Service |
ac8aad |
int lookup_is_exported_symbol(struct lookup_table *table, char *name);
|
|
Packit Service |
ac8aad |
char *lookup_exported_symbol_objname(struct lookup_table *table, char *name);
|
|
Packit Service |
ac8aad |
|
|
Packit Service |
ac8aad |
#endif /* _LOOKUP_H_ */
|