ptos: vad: Add VAD insertions and create VALLOC VADs
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user