Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:ssize_t dax_iomap_rw(struct kiocb *iocb, struct iov_iter *iter, const struct iomap_ops *ops)

Type:ssize_t

Parameter:

TypeParameterName
struct kiocb *iocb
struct iov_iter *iter
const struct iomap_ops *ops
1198  mapping = f_mapping
1199  inode = host
1200  pos = The 'ki_filp' pointer is shared in a union for aio , ret = 0 , done = 0
1201  flags = 0
1203  If iov_iter_rw(iter) == WRITE Then
1204  lockdep_assert_held_write( & i_rwsem)
1205  flags |= writing, must allocate blocks
1206  Else
1207  lockdep_assert_held( & i_rwsem)
1210  If ki_flags & IOCB_NOWAIT Then flags |= do not block
1213  When iov_iter_count(iter) cycle
1214  ret = iomap_apply(inode, pos, iov_iter_count(iter), flags, ops, iter, dax_iomap_actor)
1216  If ret <= 0 Then Break
1218  pos += ret
1219  done += ret
1222  The 'ki_filp' pointer is shared in a union for aio += done
1223  Return If done Then done Else ret