docs: documented global kernel heap bindings
This commit is contained in:
parent
cce511c9c3
commit
2d30c29610
|
@ -589,6 +589,17 @@ Returns **false** if there is a different byte.
|
|||
Returns **true** if the data is the same.
|
||||
There is a similar function on linux called _memcmp_.
|
||||
|
||||
#### `memory_allocate(size)` - function (void*)
|
||||
Returns the address to a buffer, that is at least **_size_** bytes big.
|
||||
On linux this function is called _malloc_.
|
||||
|
||||
#### `memory_free(address)` - function (void)
|
||||
The buffer at address, this buffer needs to be a buffer, that was created with `memory_allocate`.
|
||||
On linux this function is called _free_.
|
||||
|
||||
#### `memory_allocator_init(base)` - function (void)
|
||||
This initializes the heap, where `memory_allocate` allocates memory.
|
||||
|
||||
### panic.h
|
||||
Ahhhhh - the kernel is burning!
|
||||
|
||||
|
|
Loading…
Reference in New Issue