-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
storage/stream_flash: Document write flush as mandatory #68660
storage/stream_flash: Document write flush as mandatory #68660
Conversation
* A write with the @p flush set to true has to be issued as the last | ||
* write request for a given context, as it concludes write of a stream; | ||
* there must not be issued any more write requests for given context, | ||
* unless it is re-initialized, and such write attempts may result in the | ||
* function returning error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems redundant with L102-103. I would completely remove this section and instead only update L102-103 (also maybe make it a @warning
to make it stand out more?) to add the extra explanation regarding the expected behavior after a flush write. Maybe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kartben Does this look better now?
ff84c59
to
06cc2e8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! Just spotted a small typo + other minor nit. Thanks!
There is no need to make this optional just inform user that this has to be called to complete write of buffers. The commit also adds info that there should be no more write attempts done with use of "flushed", as it may return write errors anyway. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
cd76d49
to
e1056c9
Compare
Sorry, should have run check before push. |
There is no need to make this optional just inform user that this has to be called to complete write of buffers. The commit also adds info that there should be no more write attempts done with use of "flushed", as it may return write errors anyway.