aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc
diff options
context:
space:
mode:
authorMarvin Borner2021-04-02 13:05:50 +0200
committerMarvin Borner2021-04-02 13:05:50 +0200
commit3e81b8a254485de532d46c9a0710be97879d0605 (patch)
treeb51e1dda3e3b6302c6bc8fa7586b8069ee602123 /kernel/inc
parent192b756a6999a0637fcc72f3fd2f9f7099e32543 (diff)
Added memory leak detector
Diffstat (limited to 'kernel/inc')
-rw-r--r--kernel/inc/mm.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/inc/mm.h b/kernel/inc/mm.h
index fa9211c..5dee6d4 100644
--- a/kernel/inc/mm.h
+++ b/kernel/inc/mm.h
@@ -95,6 +95,18 @@ struct page_dir *virtual_kernel_dir(void);
* Memory wrappers
*/
+struct memory_object {
+ u32 id;
+ u32 refs;
+ u8 shared;
+ struct memory_range prange;
+};
+
+struct memory_proc_link {
+ struct memory_object *obj;
+ struct memory_range vrange;
+};
+
#define MEMORY_NONE (0 << 0)
#define MEMORY_USER (1 << 0)
#define MEMORY_CLEAR (1 << 1)