函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:is_sync_kiocb

函数原型:static inline bool is_sync_kiocb(struct kiocb *kiocb)

返回类型:bool

参数:

类型参数名称
struct kiocb *kiocb
337  返回:ki_complete == NULL
调用者
名称描述
__blkdev_direct_IO
blkdev_direct_IO
do_blockdev_direct_IOThis is a library function for use by filesystem drivers
iomap_dio_rwmap_dio_rw() always completes O_[D]SYNC writes regardless of whether the IO* is being issued as AIO or not. This allows us to optimise pure data writes* to use REQ_FUA rather than requiring generic_write_sync() to issue a* REQ_FLUSH post write
bio_set_polledMark a bio as polled. Note that for async polled IO, the caller must* expect -EWOULDBLOCK if we cannot allocate a request (or other resources).* We cannot block waiting for requests on polled IO, as those completions* must be found by the caller