1 #ifndef _IPXE_UMALLOC_H 2 #define _IPXE_UMALLOC_H 24 #define PROVIDE_UMALLOC( _subsys, _api_func, _func ) \ 25 PROVIDE_SINGLE_API ( UMALLOC_PREFIX_ ## _subsys, _api_func, _func ) 32 #include <bits/umalloc.h>
uint8_t size
Entry size (in 32-bit words)
User memory allocation API configuration.
Access to external ("user") memory.
uint32_t userptr_t
A pointer to a user buffer.
userptr_t urealloc(userptr_t userptr, size_t new_size)
Reallocate external memory.
iPXE user memory allocation API for Linux
#define __always_inline
Declare a function to be always inline.
iPXE user memory allocation API for EFI
#define UNULL
Equivalent of NULL for user pointers.
static __always_inline void ufree(userptr_t userptr)
Free external memory.
static __always_inline userptr_t umalloc(size_t size)
Allocate external memory.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)