mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 04:50:25 +03:00
First version of an external memory allocator (not tested)
This commit is contained in:
17
src/include/gpxe/emalloc.h
Normal file
17
src/include/gpxe/emalloc.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef _GPXE_EMALLOC_H
|
||||
#define _GPXE_EMALLOC_H
|
||||
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* External memory allocation
|
||||
*
|
||||
*/
|
||||
|
||||
#include <gpxe/uaccess.h>
|
||||
|
||||
extern userptr_t emalloc ( size_t size );
|
||||
extern userptr_t erealloc ( userptr_t ptr, size_t new_size );
|
||||
extern void efree ( userptr_t ptr );
|
||||
|
||||
#endif /* _GPXE_EMALLOC_H */
|
||||
Reference in New Issue
Block a user