Return the number of RAM/ROM entries found in the guest's address space
#include <qvm/gasp.h>
unsigned gasp_walk_count(const struct guest_system *gsp, uint64_t max_length, unsigned flags)
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.
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().