mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
drivers/mtd/ftl.c: Support BIOC_FLUSH ioctl
This commit is contained in:
@@ -202,6 +202,10 @@ int rwb_invalidate(FAR struct rwbuffer_s *rwb,
|
||||
off_t startblock, size_t blockcount);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DRVR_WRITEBUFFER
|
||||
int rwb_flush(FAR struct rwbuffer_s *rwb);
|
||||
#endif
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
|
||||
@@ -257,6 +257,10 @@
|
||||
* to return geometry.
|
||||
* OUT: Data return in user-provided
|
||||
* buffer. */
|
||||
#define BIOC_FLUSH _BIOC(0x000d) /* Flush the block device write buffer
|
||||
* IN: None
|
||||
* OUT: None (ioctl return value provides
|
||||
* success/failure indication). */
|
||||
|
||||
/* NuttX MTD driver ioctl definitions ***************************************/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user