Function report |
Source Code:mm\filemap.c |
Create Date:2022-07-28 14:02:24 |
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_read_iter - generic filesystem read routine*@iocb: kernel I/O control block*@iter: destination for the data read* This is the "read_iter()" routine for all filesystems* that can use the page cache directly
Proto:ssize_t generic_file_read_iter(struct kiocb *iocb, struct iov_iter *iter)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct kiocb * | iocb | |
struct iov_iter * | iter |
2276 | count = iov_iter_count(iter) |
2277 | retval = 0 |
2282 | If ki_flags & IOCB_DIRECT Then |
2289 | If ki_flags & IOCB_NOWAIT Then |
2290 | If lemap_range_has_page - check if a page exists in range Then Return -EAGAIN |
2293 | Else |
2301 | file_accessed(file) |
2304 | If retval >= 0 Then |
2308 | iov_iter_revert(iter, count - iov_iter_count(iter)) |
2325 | out : |
2326 | Return retval |
Name | Describe |
---|---|
blkdev_read_iter |
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 |