drivers/mtd/ftl.c: Support BIOC_FLUSH ioctl

This commit is contained in:
Xiang Xiao
2018-11-09 08:12:52 -06:00
committed by Gregory Nutt
parent 0849af133e
commit 6ee09e8888
4 changed files with 43 additions and 4 deletions
+4
View File
@@ -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)
}
+4
View File
@@ -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 ***************************************/