ptos: mm: Add virtual address descriptor allocation

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
2026-07-12 19:20:15 +00:00
parent 8221e33395
commit f543f28bf0
2 changed files with 65 additions and 0 deletions
+11
View File
@@ -54,4 +54,15 @@ VOID MmVadTreeInit(MM_VAD_TREE *Tree);
*/
PT_STATUS MmVadTreeInsert(MM_VAD_TREE *Tree, MM_VAD *Vad);
/*
* Allocate a number of virtual address descriptors from a
* VAD tree.
*
* @Tree: VAD tree to allocate from
* @PageCount: Page count
*
* Returns NULL on failure / out of memory
*/
MM_VAD *MmVadTreeAllocate(MM_VAD_TREE *Tree, USIZE PageCount);
#endif /* !_MM_VAD_H_ */