ptos: vad: Add VAD insertions and create VALLOC VADs

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
2026-07-12 06:26:18 +00:00
parent 03c7b160e8
commit 8221e33395
3 changed files with 97 additions and 5 deletions
+18 -1
View File
@@ -9,8 +9,9 @@
#ifndef _MM_VAD_H_
#define _MM_VAD_H_ 1
#include <ptapi/status.h>
#include <ptdef.h>
#include <mm/vmm.h>
#include <mm/vm.h>
#include <tree.h>
/*
@@ -37,4 +38,20 @@ typedef struct {
USIZE Elements;
} MM_VAD_TREE;
/*
* Initialize a virtual address descriptor tree
*
* @Tree: Tree to initialize
*/
VOID MmVadTreeInit(MM_VAD_TREE *Tree);
/*
* Insert a virtual address descriptor into a virtual address
* descriptor tree.
*
* @Tree: VAD tree to be inserted into
* @Vad: VAD to insert
*/
PT_STATUS MmVadTreeInsert(MM_VAD_TREE *Tree, MM_VAD *Vad);
#endif /* !_MM_VAD_H_ */