|
iPXE
|
iPXE user memory allocation API for EFI More...
#include <string.h>#include <errno.h>#include <assert.h>#include <ipxe/uaccess.h>#include <ipxe/umalloc.h>#include <ipxe/efi/efi.h>Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static void * | efi_urealloc (void *old_ptr, size_t new_size) |
| Reallocate external memory. More... | |
| PROVIDE_UMALLOC (efi, urealloc, efi_urealloc) | |
iPXE user memory allocation API for EFI
Definition in file efi_umalloc.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Reallocate external memory.
| old_ptr | Memory previously allocated by umalloc(), or NULL |
| new_size | Requested size |
| new_ptr | Allocated memory, or NULL |
Calling realloc() with a new size of zero is a valid way to free a memory block.
Definition at line 49 of file efi_umalloc.c.
References AllocateAnyPages, EFI_BOOT_SERVICES::AllocatePages, assert(), EFI_SYSTEM_TABLE::BootServices, DBG, EEFI, EFI_PAGE_SIZE, EFI_SIZE_TO_PAGES, efi_systab, EfiBootServicesData, EFI_BOOT_SERVICES::FreePages, info, memcpy(), NOWHERE, NULL, rc, and strerror().
| PROVIDE_UMALLOC | ( | efi | , |
| urealloc | , | ||
| efi_urealloc | |||
| ) |
1.8.15