aboutsummaryrefslogtreecommitdiffstats
path: root/src/vm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm.h')
-rw-r--r--src/vm.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/vm.h b/src/vm.h
new file mode 100644
index 0000000..25849e7
--- /dev/null
+++ b/src/vm.h
@@ -0,0 +1,19 @@
1#ifndef _VM_H_
2#define _VM_H_
3#include <stdint.h>
4
5typedef struct VMMapping {
6 uint64_t begin;
7 uint64_t end;
8 uint8_t r:1;
9 uint8_t w:1;
10 uint8_t x:1;
11 uint8_t s:1;
12 uint8_t p:1;
13 const char *name;
14 struct VMMapping *next;
15} VMMapping;
16
17VMMapping* parse_vmmap (int pid);
18
19#endif // _VM_H_