Function report |
Source Code:mm\filemap.c |
Create Date:2022-07-28 14:03:19 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:generic_file_direct_write
Proto:ssize_t generic_file_direct_write(struct kiocb *iocb, struct iov_iter *from)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct kiocb * | iocb | |
struct iov_iter * | from |
3175 | write_len = iov_iter_count(from) |
3176 | end = pos + write_len - 1 >> PAGE_SHIFT determines the page size |
3178 | If ki_flags & IOCB_NOWAIT Then |
3180 | If lemap_range_has_page - check if a page exists in range Then Return -EAGAIN |
3183 | Else |
3202 | If written Then |
3231 | If written > 0 Then |
3236 | mark_inode_dirty(inode) |
3240 | iov_iter_revert(from, write_len - iov_iter_count(from)) |
3241 | out : |
3242 | Return written |
Name | Describe |
---|---|
__generic_file_write_iter | __generic_file_write_iter - write data to a file*@iocb: IO state structure (file, offset, etc.)*@from: iov_iter with data to write* This function does all the work needed for actually writing data to a* file |
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 |