gram_reserve()

Mark a RAM/ROM range as being in use

Synopsis:

#include <qvm/gasp.h>
int gram_reserve(struct guest_system *gsp,
                 uint64_t loc,
                 uint64_t size)

Arguments:

gsp
A pointer to a guest system.
loc
The starting address of the location to be marked as in use.
size
The size, in bytes, of the range to be marked as in use.

Library:

Provided by qvm; no external library is required.

Description:

This function is called by gram_find_free() and gram_find_free_range().

Returns:

EOK, or errno if unsuccessful.