diff options
Diffstat (limited to 'src/include/kernel/vmmmgr.H')
| -rw-r--r-- | src/include/kernel/vmmmgr.H | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/kernel/vmmmgr.H b/src/include/kernel/vmmmgr.H index feee7a731..7c8c63c22 100644 --- a/src/include/kernel/vmmmgr.H +++ b/src/include/kernel/vmmmgr.H @@ -6,6 +6,8 @@ #include <kernel/types.h> #include <kernel/spinlock.H> +class MessageQueue; + class VmmManager { public: @@ -68,6 +70,16 @@ class VmmManager */ static int devUnmap(void* ea); + /** + * @brief Allocates a block of virtual memory of the given size + * @param i_mq[in] - Message queue to be associated with the block + * @param i_va[in] - Base virtual address of the block to be allocated + * @param i_size[in] - Requested virtual memory size of the block + * @return int - 0 for successful block allocation, non-zero otherwise + */ + static int mmAllocBlock(MessageQueue* i_mq,void* i_va,uint64_t i_size); + + protected: VmmManager(); ~VmmManager() {}; |

