Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\sync.c Create Date:2022-07-28 20:11:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:do_fsync

Proto:static int do_fsync(unsigned int fd, int datasync)

Type:int

Parameter:

TypeParameterName
unsigned intfd
intdatasync
217  f = fdget(fd)
218  ret = -EBADF
220  If file Then
221  ret = vfs_fsync - perform a fsync or fdatasync on a file*@file: file to sync*@datasync: only perform a fdatasync operation* Write back data and metadata for @file to disk. If @datasync is* set only metadata needed to access modified file data is written.
222  fdput(f)
224  Return ret
Caller
NameDescribe
SYSCALL_DEFINE1
SYSCALL_DEFINE1