diff options
| author | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2024-04-16 00:19:57 +0300 |
|---|---|---|
| committer | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2024-04-16 00:26:01 +0300 |
| commit | 5369407082db53b68a1100e7b5391a1e9c36e621 (patch) | |
| tree | 7a54bcf8d0c7b1737a65201a09fa7e06f1a4a8c0 /src/vm.h | |
| parent | Attaching & Detaching from process (diff) | |
| download | linux-game-trainer-5369407082db53b68a1100e7b5391a1e9c36e621.tar.gz linux-game-trainer-5369407082db53b68a1100e7b5391a1e9c36e621.zip | |
Parse /proc/pid/maps
Diffstat (limited to 'src/vm.h')
| -rw-r--r-- | src/vm.h | 19 |
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 | |||
| 5 | typedef 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 | |||
| 17 | VMMapping* parse_vmmap (int pid); | ||
| 18 | |||
| 19 | #endif // _VM_H_ | ||
