LF OS
Hobby operating system for amd64 with high ambitions
Loading...
Searching...
No Matches
allocator.h
Go to the documentation of this file.
1#ifndef _ALLOCATOR_H_INCLUDED
2#define _ALLOCATOR_H_INCLUDED
3
4#include <stdint.h>
5
6struct allocator;
7
8typedef struct allocator {
9 void*(*alloc)(struct allocator* alloc, size_t size);
10 void(*dealloc)(struct allocator* alloc, void* mem);
11
14
16
17#endif
struct allocator allocator_t
allocator_t kernel_alloc
Definition vm.c:737
unsigned long uint64_t
Definition arch.h:14
uint16_t size
Size of the loaded file.
Definition loader.h:5
uint64_t tag
Definition allocator.h:12
void(* dealloc)(struct allocator *alloc, void *mem)
Definition allocator.h:10
void *(* alloc)(struct allocator *alloc, size_t size)
Definition allocator.h:9