diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-23 13:04:05 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-23 13:04:05 +0200 |
| commit | 80f5f9dfdaaf68d9e63a7bc3ba1187ca447eadc9 (patch) | |
| tree | ef3a145a8adefa8458e0982f7f437bb5d81fc83b /dev/kernel/src/HeapMgr.cc | |
| parent | 54a0f4c49d9bfb955174c87dae2f442d7f5a8b25 (diff) | |
refactor(kernel): Refactor HeapMgr functions.
what:
- mm_new_ptr is now mm_alloc_ptr.
- mm_delete_ptr is now mm_free_ptr.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/src/HeapMgr.cc')
| -rw-r--r-- | dev/kernel/src/HeapMgr.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/kernel/src/HeapMgr.cc b/dev/kernel/src/HeapMgr.cc index 6cd8fb24..5280bcc3 100644 --- a/dev/kernel/src/HeapMgr.cc +++ b/dev/kernel/src/HeapMgr.cc @@ -98,7 +98,7 @@ STATIC PageMgr kPageMgr; /// @param wr Read Write bit. /// @param user User enable bit. /// @return The newly allocated pointer. -_Output VoidPtr mm_new_ptr(SizeT sz, Bool wr, Bool user, SizeT pad_amount) { +_Output VoidPtr mm_alloc_ptr(SizeT sz, Bool wr, Bool user, SizeT pad_amount) { auto sz_fix = sz; if (sz_fix == 0) return nullptr; @@ -184,7 +184,7 @@ _Output UInt64 mm_get_ptr_flags(VoidPtr heap_ptr) { /// @brief Declare pointer as free. /// @param heap_ptr the pointer. /// @return -_Output Int32 mm_delete_ptr(VoidPtr heap_ptr) { +_Output Int32 mm_free_ptr(VoidPtr heap_ptr) { if (Detail::mm_check_ptr_address(heap_ptr) == No) return kErrorHeapNotPresent; Detail::MM_INFORMATION_BLOCK_PTR heap_info_ptr = |
