gasp_walk_count()
Get the number of RAM/ROM entries in the guest's address space
Synopsis:
#include <qvm/gasp.h>unsigned gasp_walk_count(uint64_t max_length,
gasp_walk_flags_t flags)Arguments:
- max_length
- The maximum length of each entry, in bytes.
- flags
- A combination of GWF_* flags specifying the address space information to be returned.
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().
Page updated:
