summaryrefslogtreecommitdiff
path: root/procfs.h
diff options
context:
space:
mode:
authorthe lemons <citrons@mondecitronne.com>2023-02-06 13:58:46 -0600
committerthe lemons <citrons@mondecitronne.com>2023-02-06 13:58:46 -0600
commit5b53f34340bff793106af3c475e5bb3315589e53 (patch)
tree010638870d206c3284192348d67487e749c5f054 /procfs.h
parent3af50b956b8887b64c3c29b30a0008be866b24c4 (diff)
parse /proc/<pid>/maps
Diffstat (limited to 'procfs.h')
-rw-r--r--procfs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/procfs.h b/procfs.h
index 7b81a13..b36c242 100644
--- a/procfs.h
+++ b/procfs.h
@@ -12,4 +12,11 @@
int procfs_open(pid_t pid);
int read_page(int fd, uintptr_t index, uint8_t *data);
+struct procfs_map {
+ uintptr_t base;
+ uintptr_t max;
+};
+
+ssize_t procfs_maps(pid_t pid, struct procfs_map **maps);
+
#endif