diff options
author | Marvin Borner | 2021-04-02 13:05:50 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-02 13:05:50 +0200 |
commit | 3e81b8a254485de532d46c9a0710be97879d0605 (patch) | |
tree | b51e1dda3e3b6302c6bc8fa7586b8069ee602123 /kernel/inc | |
parent | 192b756a6999a0637fcc72f3fd2f9f7099e32543 (diff) |
Added memory leak detector
Diffstat (limited to 'kernel/inc')
-rw-r--r-- | kernel/inc/mm.h | 12 |
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) |