gram_find_free()
Find a free memory space from a guest system's RAM/ROM regions
Synopsis:
#include <qvm/gasp.h>uint64_t gram_find_free(uint64_t size,
uint64_t align,
gram_hint_flags_t flags)Arguments:
- size
- The number of bytes of free space needed.
- align
- The requested alignment of the space.
- flags
- A combination of GRAM_HINT_* flags.
Description:
This function finds a free memory space with the given size and alignment from a guest system's RAM or ROM regions. The function calls gram_reserve() on the region it returns, so you don't need to do that.
Returns:
The address of the free space, or QSL_NO_LOCATION if no space is available.
Page updated:
