gasp_walk_count_filtered()

Return the number of RAM/ROM entries found in the guest's address space that can be accessed through the memory walk filter

Synopsis:

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

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 needed; see gasp_walk_state_flags.
filter
The walk filter function that controls which RAM locations can be written out; see gasp_walk_filter_t.

Description:

Use this function to find out how much memory you will need for storing the information about the ranges of the guest's address space that are accessible through the walk filter. 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 that can be accessed through the walk filter. This corresponds to how many successful gasp_walk_next_filtered() calls you can make, assuming the same length was passed into gasp_walk_init_filtered().