Sun 12 Jan 19:29:58 CET 2025
This commit is contained in:
		
							parent
							
								
									cd8c4f8af7
								
							
						
					
					
						commit
						b2107f21a8
					
				|  | @ -7,6 +7,13 @@ See the file LICENSE for details. | |||
| #ifndef KMALLOC_H | ||||
| #define KMALLOC_H | ||||
| 
 | ||||
| struct kmalloc_chunk { | ||||
| 	int state; | ||||
| 	int length; | ||||
| 	struct kmalloc_chunk *next; | ||||
| 	struct kmalloc_chunk *prev; | ||||
| }; | ||||
| 
 | ||||
| void *kmalloc(int length); | ||||
| void kfree(void *ptr); | ||||
| 
 | ||||
|  | @ -14,4 +21,8 @@ void kmalloc_init(char *start, int length); | |||
| void kmalloc_debug(); | ||||
| int kmalloc_test(); | ||||
| 
 | ||||
| #ifdef KMALLOC_EXT | ||||
|   #include "kmalloc_ext.h" | ||||
| #endif | ||||
| 
 | ||||
| #endif | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user