#include <stdio.h>
#include <ipxe/uaccess.h>
#include <ipxe/umalloc.h>
#include <ipxe/io.h>
Go to the source code of this file.
◆ umalloc_test()
void umalloc_test |
( |
void |
| ) |
|
Definition at line 6 of file umalloc_test.c.
11 printf (
"Before allocation:\n" );
18 printf (
"After allocation:\n" );
24 printf (
"After freeing:\n" );
void get_memmap(struct memory_map *memmap)
Get memory map.
int printf(const char *fmt,...)
Write a formatted string to the console.
uint32_t userptr_t
A pointer to a user buffer.
userptr_t urealloc(userptr_t userptr, size_t new_size)
Reallocate external memory.
static __always_inline void ufree(userptr_t userptr)
Free external memory.
static __always_inline userptr_t umalloc(size_t size)
Allocate external memory.
References get_memmap(), printf(), ufree(), umalloc(), and urealloc().