mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
bch/ioctl: support FLUSH cache by cmd: BIOC_FLUSH
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -422,6 +422,14 @@ static int bch_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
}
|
||||
break;
|
||||
|
||||
case BIOC_FLUSH:
|
||||
{
|
||||
/* Flush any dirty pages remaining in the cache */
|
||||
|
||||
ret = bchlib_flushsector(bch);
|
||||
}
|
||||
break;
|
||||
|
||||
#ifdef CONFIG_BCH_ENCRYPTION
|
||||
/* This is a request to set the encryption key? */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user