|
A helper function for iterating through all sectors handled by a driver that are within a specific address range.
-
Parameters:
-
|
h
|
A pointer to the handle of the LIBMEM driver. |
|
range_start
|
A pointer to the start of the address range. |
|
range_size
|
The size of the address range in bytes. |
|
fn
|
The function to call for each sector. |
|
actual_range_start
|
A pointer to the start of the first sector that is within the address range. |
|
actual_range_size
|
The combined size of all the sectors that are within the address range. |
-
Returns:
- The LIBMEM status result.
This function iterates through all the sectors handled by a single LIBMEM driver and calls a libmem_foreach_sector_fn_t function for each if it is within the specified address range. If any of the calls return a response other than LIBMEM_STATUS_SUCCESS this function will terminate and return the response.
|
|