Lazuli
Loading...
Searching...
No Matches
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
25typedef struct {
29 void *baseMem;
30
35 void *brk;
36
40 void *endMem;
42
51void *
52KIncrementalMalloc(const size_t size);
53
61void
62Memory_Copy(const void * source, void * destination, const size_t size);
63
65
66#endif /* LAZULI_SYS_MEMORY_H */
Basic type definitions and useful macros.
#define _EXTERN_C_DECL_BEGIN
Open C++ header file declarations.
Definition common.h:39
#define _EXTERN_C_DECL_END
Close C++ header file declarations.
Definition common.h:44
void * KIncrementalMalloc(const size_t size)
Allocate memory for kernel objects using incremental method.
Definition memory.c:67
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
void * brk
Break position, points to the first location beyond the current end of the heap.
Definition memory.h:35
void * baseMem
Base address of the memory region.
Definition memory.h:29