函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\fs.h Create Date:2022-07-27 06:44:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Sync the bytes written if this was a synchronous write. Expect ki_pos* to already be updated for the write, and will return either the amount* of bytes passed in, or an error if syncing the file failed.

函数原型:static inline ssize_t generic_write_sync(struct kiocb *iocb, ssize_t count)

返回类型:ssize_t

参数:

类型参数名称
struct kiocb *iocb
ssize_tcount
2855  如果ki_flags按位与IOCB_DSYNC
2856  ret等于vfs_fsync_range - helper to sync a range of data & metadata to disk*@file: file to sync*@start: offset in bytes of the beginning of data range to sync*@end: offset in bytes of the end of data range (inclusive)*@datasync: perform only datasync
2859  如果ret则返回:ret
2863  返回:count
调用者
名称描述
generic_file_write_itergeneric_file_write_iter - write data to a file*@iocb: IO state structure*@from: iov_iter with data to write* This is a wrapper around __generic_file_write_iter() to be used by most* filesystems. It takes care of syncing the file in case of O_SYNC file
blkdev_write_iterWrite data to the block device. Only intended for the block device itself* and the raw driver which basically is a fake block device.* Does not take i_mutex for the write and thus is not for general purpose* use.
dio_completedio_complete() - called when all DIO BIO I/O has been completed* This drops i_dio_count, lets interested parties know that a DIO operation* has completed, and calculates the resulting return code for the operation
iomap_dio_complete