mirror of https://github.com/ARMmbed/mbed-os.git
bd: Add sync function to the block device API
/** Ensure data on storage is in sync with the driver * * @return 0 on success or a negative error code on failure */ virtual int sync()pull/5926/head
parent
98611c8578
commit
3f5d618c89
|
@ -59,6 +59,15 @@ public:
|
||||||
*/
|
*/
|
||||||
virtual int deinit() = 0;
|
virtual int deinit() = 0;
|
||||||
|
|
||||||
|
/** Ensure data on storage is in sync with the driver
|
||||||
|
*
|
||||||
|
* @return 0 on success or a negative error code on failure
|
||||||
|
*/
|
||||||
|
virtual int sync()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/** Read blocks from a block device
|
/** Read blocks from a block device
|
||||||
*
|
*
|
||||||
* If a failure occurs, it is not possible to determine how many bytes succeeded
|
* If a failure occurs, it is not possible to determine how many bytes succeeded
|
||||||
|
|
Loading…
Reference in New Issue