typedef int (*libmem_driver_flush_fn_t)(libmem_driver_handle_t *h);

libmem_driver_flush_fn_t is a function pointer to a LIBMEM driver's flush function.

h — A pointer to the handle of the LIBMEM driver.

libmem_driver_flush_fn_t returns — The LIBMEM status result.

The driver's flush function should complete any outstanding memory operations (if any) and return the memory to read mode.

If this operation is not required the function should return LIBMEM_STATUS_SUCCESS.