函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\sync.c Create Date:2022-07-29 10:42:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:do_fsync

函数原型:static int do_fsync(unsigned int fd, int datasync)

返回类型:int

参数:

类型参数名称
unsigned intfd
intdatasync
217  f等于fdget(fd)
218  ret等于负EBADF
220  如果file
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  返回:ret
调用者
名称描述
SYSCALL_DEFINE1
SYSCALL_DEFINE1