Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct kiocb * | iocb | |
struct iov_iter * | iter | |
const struct iomap_ops * | ops |
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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |