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
6
struct
allocator
;
7
8
typedef
struct
allocator
{
9
void
*(*alloc)(
struct
allocator
*
alloc
,
size_t
size
);
10
void(*
dealloc
)(
struct
allocator
*
alloc
,
void
* mem);
11
12
uint64_t
tag
;
13
}
allocator_t
;
14
15
extern
allocator_t
kernel_alloc
;
16
17
#endif
allocator_t
struct allocator allocator_t
kernel_alloc
allocator_t kernel_alloc
Definition
vm.c:737
uint64_t
unsigned long uint64_t
Definition
arch.h:14
size
uint16_t size
Size of the loaded file.
Definition
loader.h:5
allocator
Definition
allocator.h:8
allocator::tag
uint64_t tag
Definition
allocator.h:12
allocator::dealloc
void(* dealloc)(struct allocator *alloc, void *mem)
Definition
allocator.h:10
allocator::alloc
void *(* alloc)(struct allocator *alloc, size_t size)
Definition
allocator.h:9
src
kernel
allocator.h
Generated on Tue Apr 23 2024 20:41:16 for LF OS by
1.9.8