mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-05-29 02:28:35 +08:00
add blockdev's flush fops for opening file with O_SYNC (#8232)
This commit is contained in:
@@ -614,6 +614,11 @@ static int rt_mmcsd_fops_poll(struct dfs_file *file, struct rt_pollreq *req)
|
|||||||
return mask;
|
return mask;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int rt_mmcsd_fops_flush(struct dfs_file *file)
|
||||||
|
{
|
||||||
|
return RT_EOK;
|
||||||
|
}
|
||||||
|
|
||||||
const static struct dfs_file_ops mmcsd_blk_fops =
|
const static struct dfs_file_ops mmcsd_blk_fops =
|
||||||
{
|
{
|
||||||
rt_mmcsd_fops_open,
|
rt_mmcsd_fops_open,
|
||||||
@@ -621,7 +626,7 @@ const static struct dfs_file_ops mmcsd_blk_fops =
|
|||||||
rt_mmcsd_fops_ioctl,
|
rt_mmcsd_fops_ioctl,
|
||||||
rt_mmcsd_fops_read,
|
rt_mmcsd_fops_read,
|
||||||
rt_mmcsd_fops_write,
|
rt_mmcsd_fops_write,
|
||||||
RT_NULL,
|
rt_mmcsd_fops_flush,
|
||||||
generic_dfs_lseek,
|
generic_dfs_lseek,
|
||||||
RT_NULL,
|
RT_NULL,
|
||||||
RT_NULL,
|
RT_NULL,
|
||||||
|
|||||||
Reference in New Issue
Block a user