basekernel/kernel/kmalloc.h

29 lines
507 B
C
Raw Normal View History

2024-10-14 23:08:37 +02:00
/*
Copyright (C) 2016-2019 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file LICENSE for details.
*/
#ifndef KMALLOC_H
#define KMALLOC_H
2025-01-12 19:30:31 +01:00
struct kmalloc_chunk {
int state;
int length;
struct kmalloc_chunk *next;
struct kmalloc_chunk *prev;
};
2024-10-14 23:08:37 +02:00
void *kmalloc(int length);
void kfree(void *ptr);
void kmalloc_init(char *start, int length);
void kmalloc_debug();
int kmalloc_test();
2025-01-12 19:30:31 +01:00
#ifdef KMALLOC_EXT
#include "kmalloc_ext.h"
#endif
2024-10-14 23:08:37 +02:00
#endif