函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dax_iomap_rw - Perform I/O to a DAX file*@iocb: The control block for this I/O*@iter: The addresses to do I/O from or to*@ops: iomap ops passed from the file system* This function performs read and write operations to directly mapped* persistent memory

函数原型:ssize_t dax_iomap_rw(struct kiocb *iocb, struct iov_iter *iter, const struct iomap_ops *ops)

返回类型:ssize_t

参数:

类型参数名称
struct kiocb *iocb
struct iov_iter *iter
const struct iomap_ops *ops
1198  mapping等于f_mapping
1199  inode等于host
1200  pos等于文件偏移, ret等于0, done等于0
1201  flags等于0
1203  如果iov_iter_rw(iter)恒等于WRITE
1204  lockdep_assert_held_write( & i_rwsem)
1205  flags或等于writing, must allocate blocks
1206  否则
1207  lockdep_assert_held( & i_rwsem)
1210  如果ki_flags按位与IOCB_NOWAITflags或等于do not block
1213 iov_iter_count(iter)循环
1214  ret等于iomap_apply(inode, pos, iov_iter_count(iter), flags, ops, iter, dax_iomap_actor)
1216  如果ret小于等于0则退出
1218  pos加等于ret
1219  done加等于ret
1222  文件偏移加等于done
1223  返回:如果donedone否则ret