osal_file_status_t (*flush)(OSAL_FILE *stream);
Flush any buffered write data associated with an open OSAL_FILE through the active OSAL file backend.
stream != NULL, then stream designates a valid OSAL_FILE.stream != NULL, then stream has been opened with a mode compatible with writing.stream must not be NULL.OSAL_FILE_STATUS_OK.stream has been forwarded to the active backend as required by that backend's flush operation.OSAL_FILE_STATUS_INVALID if stream == NULL.osal_file_status_t representing the backend flush failure when a backend flush error occurs.osal_file_status_t status domain.stream.stream on both success and failure.flush() does not close stream.flush() does not change ownership or lifetime responsibilities for stream.close().