forked from fi01/unlock_security_module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfops_handler.h
21 lines (17 loc) · 872 Bytes
/
fops_handler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdbool.h>
typedef enum {
FOPS_RUN_BY_EXPLOIT,
FOPS_RUN_BY_KERNEL_MEMORY,
} fops_run_mode;
extern bool fops_run_in_kernel_mode(void *fops_address,
const char *device_path,
fops_run_mode mode,
bool (*function)(void *),
void *user_data);
extern bool fops_map_physical_memory(void *fops_address,
const char *device_path,
fops_run_mode mode,
unsigned long int map_address,
unsigned long int physical_address,
unsigned long int size);
extern bool fops_unmap_physical_memory(unsigned long int map_address, unsigned long int size);