MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / dfs_file_flush

Function dfs_file_flush

components/dfs/dfs_v1/src/dfs_file.c:561–570  ·  view source on GitHub ↗

* this function will flush buffer on a file descriptor. * * @param fd the file descriptor. * * @return 0 on successful, -1 on failed. */

Source from the content-addressed store, hash-verified

559 * @return 0 on successful, -1 on failed.
560 */
561int dfs_file_flush(struct dfs_file *fd)
562{
563 if (fd == NULL)
564 return -EINVAL;
565
566 if (fd->vnode->fops->flush == NULL)
567 return -ENOSYS;
568
569 return fd->vnode->fops->flush(fd);
570}
571
572/**
573 * this function will seek the offset for specified file descriptor.

Callers 3

fsyncFunction · 0.70
test_dfs_closeFunction · 0.50
test_dfs_renameFunction · 0.50

Calls

no outgoing calls

Tested by 2

test_dfs_closeFunction · 0.40
test_dfs_renameFunction · 0.40