diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-28 20:54:33 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-28 20:54:33 +0100 |
| commit | b2c7b8604ed3a4c209a15a9ffd718a43163dd9b4 (patch) | |
| tree | 851d79e3a9b1c676b48ec8dfcd2b989f4da45c9b /Public/Developer/System.Core/Headers/Heap.h | |
| parent | 215518ae55a54973a1ae18f572ca5bf0ac2a499e (diff) | |
NewKernel: Add PowerPC partition type inside EPM, add Leak() FileStream method. and documentation.
SystemLib: Start implementing the API.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Public/Developer/System.Core/Headers/Heap.h')
| -rw-r--r-- | Public/Developer/System.Core/Headers/Heap.h | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/Public/Developer/System.Core/Headers/Heap.h b/Public/Developer/System.Core/Headers/Heap.h index 90f15aa5..9f3215db 100644 --- a/Public/Developer/System.Core/Headers/Heap.h +++ b/Public/Developer/System.Core/Headers/Heap.h @@ -15,18 +15,24 @@ enum RtAllocationKind { kArrayAllocation = 0xD, }; -/// @brief Allocates a new heap from process pool. -/// @param refObj -/// @param sz -/// @param flags +/// @brief Allocates a new pointer from process pool. +/// @param sz the size +/// @param flags the allocation flags. /// @return -CA_EXTERN_C PtrVoidType RtAllocateProcessHeap(ObjectRef refObj, QWordType sz, +CA_EXTERN_C PtrVoidType RtAllocateProcessPtr(QWordType sz, DWordType flags); -/// @brief Check if pointer exists. -/// @param refObj -/// @param ptr +/// @brief Check if the pointer exists. +/// @param ptr the pointer to free. /// @return -CA_EXTERN_C BooleanType RtProcessHeapExists(ObjectRef refObj, PtrVoidType ptr); -CA_EXTERN_C QWordType RtProcessHeapSize(ObjectRef refObj, PtrVoidType ptr); -CA_EXTERN_C VoidType RtFreeProcessHeap(ObjectRef refObj, PtrVoidType ptr); +CA_EXTERN_C BooleanType RtProcessPtrExists(PtrVoidType ptr); + +/// @brief Gets the size of the process' pointer. +/// @param ptr the pointer to free. +/// @return +CA_EXTERN_C QWordType RtProcessPtrSize(PtrVoidType ptr); + +/// @brief Frees the process pointer. +/// @param ptr the pointer to free. +/// @return +CA_EXTERN_C VoidType RtFreeProcessPtr(PtrVoidType ptr); |
