NeKernel dev
Loading...
Searching...
No Matches
ddk_alloc.c File Reference
#include <DDKKit/ddk.h>

Functions

DDK_EXTERN void * kalloc (size_t sz)
 Allocates a new heap on the Kernel's side.
DDK_EXTERN void kfree (void *ptr)
 Frees a pointer from the heap.

Function Documentation

◆ kalloc()

DDK_EXTERN void * kalloc ( size_t sz)

Allocates a new heap on the Kernel's side.

Allocates an heap ptr.

Parameters
szthe size of the heap block.
Returns
the newly allocated pointer.

◆ kfree()

DDK_EXTERN void kfree ( void * ptr)

Frees a pointer from the heap.

Frees an heap ptr.

Parameters
ptrthe pointer to free.