int libmem_foreach_driver(libmem_foreach_driver_fn_t fn);

libmem_foreach_driver iterates through all the registered LIBMEM drivers and calls fn for each. If any of the calls return a response other than LIBMEM_STATUS_SUCCESS this function will terminate and return that response.

fn — The function to call for each driver.

libmem_foreach_driver returns — The LIBMEM status result.