f3s_v2suspend()

int f3s_v2suspend (f3s_dbase_t *dbase,
                   f3s_access_t *access,
                   uint32_t flags,
                   uint32_t text_offset);

This function suspends an erase operation, when supported, for a read or for a write.

On success, it should return EOK. If an error occurs, it should return one of the following:

EIO
Recoverable I/O error (e.g. failed due to low power or erase failed, but corruption is localized and block will be usable after erasing).
EFAULT
Unrecoverable I/O error (e.g. block no longer usable).
EINVAL
Invalid command error.
ECANCELED
Suspend canceled because erase has already completed.
ERANGE
Flash memory access out of range (via service->page function).
ENODEV
Flash no longer accessible (e.g. flash removed).
ESHUTDOWN
Critical error; shut down the flash driver.