Lazuli
memory.h
Go to the documentation of this file.
1 /*
2  * SPDX-License-Identifier: GPL-3.0-only
3  * This file is part of Lazuli.
4  */
5 
14 #ifndef LAZULI_SYS_MEMORY_H
15 #define LAZULI_SYS_MEMORY_H
16 
17 #include <Lazuli/common.h>
18 
20 
25 typedef struct {
29  void *baseMem;
30 
35  void *brk;
36 
40  void *endMem;
42 
51 void *
52 KIncrementalMalloc(const size_t size);
53 
61 void
62 Memory_Copy(const void * source, void * destination, const size_t size);
63 
65 
66 #endif /* LAZULI_SYS_MEMORY_H */
#define _EXTERN_C_DECL_BEGIN
Open C++ header file declarations.
Definition: common.h:37
void * brk
Break position, points to the first location beyond the current end of the heap.
Definition: memory.h:35
void * KIncrementalMalloc(const size_t size)
Allocate memory for kernel objects using incremental method.
Definition: memory.c:67
void * baseMem
Base address of the memory region.
Definition: memory.h:29
void Memory_Copy(const void *source, void *destination, const size_t size)
Copy bytes from one location to another in main memory.
Definition: memory.c:73
Represents a map of the allocated memory regions and useful memory handlers for a task or the kernel...
Definition: memory.h:25
void * endMem
End address of the memory region.
Definition: memory.h:40
Basic type definitions and useful macros.
#define _EXTERN_C_DECL_END
Close C++ header file declarations.
Definition: common.h:42