ptos: mm: Add virtual address descriptor allocation
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user