aboutsummaryrefslogtreecommitdiffstats
path: root/src/vm.h
blob: 25849e709e8a462be5db8359570b223640cb27e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _VM_H_
#define _VM_H_
#include <stdint.h>

typedef struct VMMapping {
  uint64_t begin;
  uint64_t end;
  uint8_t r:1;
  uint8_t w:1;
  uint8_t x:1;
  uint8_t s:1;
  uint8_t p:1;
  const char *name;
  struct VMMapping *next;
} VMMapping;

VMMapping* parse_vmmap (int pid);

#endif // _VM_H_