summaryrefslogtreecommitdiff
path: root/procfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'procfs.h')
-rw-r--r--procfs.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/procfs.h b/procfs.h
new file mode 100644
index 0000000..7b81a13
--- /dev/null
+++ b/procfs.h
@@ -0,0 +1,15 @@
+#ifndef CORE_PROCFS_H
+#define CORE_PROCFS_H
+
+#include <stdlib.h>
+#include <stddef.h>
+#include <sys/types.h>
+
+#ifndef PAGE_SIZE
+#define PAGE_SIZE (4096)
+#endif
+
+int procfs_open(pid_t pid);
+int read_page(int fd, uintptr_t index, uint8_t *data);
+
+#endif