From 3af50b956b8887b64c3c29b30a0008be866b24c4 Mon Sep 17 00:00:00 2001 From: the lemons Date: Sun, 5 Feb 2023 19:06:16 -0600 Subject: initial commit --- procfs.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 procfs.h (limited to 'procfs.h') 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 +#include +#include + +#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 -- cgit v1.2.3