gasp_walk_count()

Return the number of RAM/ROM entries found in the guest's address space

Synopsis:

#include <qvm/gasp.h>
unsigned gasp_walk_count(const struct guest_system *gsp,
                         uint64_t max_length,
                         unsigned flags)

Arguments:

gsp
A pointer to the guest system.
max_length
The maximum length of each information entry, in bytes.
flags
Flags specifying the address space information to be returned; see gasp_walk_state_flags.

Description:

Use this function to find out how much memory you will need for storing the information about the guest's address space. This amount is max_length multiplied by the function's return value.

Returns:

The number of RAM/ROM entries found in the guest's address space. This corresponds to how many successful gasp_walk_next() calls you can make, assuming the same length was passed into gasp_walk_init().