kiba-engine
Functions
free_list.h File Reference

Function signatures for free list based allocator implementation. More...

#include <kiba/allocators/allocator.h>
Include dependency graph for free_list.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

b8 free_list_allocator_create (allocator *alloc, usize size)
 
void free_list_allocator_destroy (allocator *alloc)
 
void * free_list_allocator_allocate (allocator *alloc, usize size)
 
void free_list_allocator_free (allocator *alloc, void *mem, usize size)
 
void free_list_allocator_free_all (allocator *alloc)
 

Detailed Description

Function signatures for free list based allocator implementation.

Definition in file free_list.h.

Function Documentation

◆ free_list_allocator_allocate()

void* free_list_allocator_allocate ( allocator alloc,
usize  size 
)
See also
allocator_impl_allocate_fn

Definition at line 298 of file free_list.c.

◆ free_list_allocator_create()

b8 free_list_allocator_create ( allocator alloc,
usize  size 
)
See also
allocator_impl_create_fn

Definition at line 268 of file free_list.c.

Here is the call graph for this function:

◆ free_list_allocator_destroy()

void free_list_allocator_destroy ( allocator alloc)
See also
allocator_impl_destroy_fn

Definition at line 284 of file free_list.c.

Here is the call graph for this function:

◆ free_list_allocator_free()

void free_list_allocator_free ( allocator alloc,
void *  mem,
usize  size 
)
See also
allocator_impl_free_fn

Definition at line 336 of file free_list.c.

◆ free_list_allocator_free_all()

void free_list_allocator_free_all ( allocator alloc)
See also
allocator_impl_free_all_fn

Definition at line 352 of file free_list.c.

Here is the call graph for this function: