Function report |
Source Code:lib\iov_iter.c |
Create Date:2022-07-28 06:24:07 |
| Last Modify:2022-05-21 11:43:54 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:iov_iter_npages
Proto:int iov_iter_npages(const struct iov_iter *i, int maxpages)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const struct iov_iter * | i | |
| int | maxpages |
| 1588 | npages = 0 |
| 1590 | If Not size Then Return 0 |
| 1592 | If Value for the false possibility is greater at compile time(iov_iter_is_discard(i)) Then Return 0 |
| 1603 | data_start(i, & iter_head, & off) |
| 1608 | Else iterate_all_kinds(i, size, v, ({unsignedlongp = (unsignedlong)iov_base;npages += DIV_ROUND_UP(p + iov_len, PAGE_SIZE) - p / PAGE_SIZE;If npages >= maxpages Then Return maxpages;0;}), ({npages++;If npages >= maxpages Then Return maxpages;}), ({unsignedlongp = (unsignedlong)iov_base;npages += DIV_ROUND_UP(p + iov_len, PAGE_SIZE) - p / PAGE_SIZE;If npages >= maxpages Then Return maxpages;})) |
| 1626 | Return npages |
| Name | Describe |
|---|---|
| blkdev_direct_IO | |
| do_blockdev_direct_IO | This is a library function for use by filesystem drivers |
| iomap_dio_bio_actor |
| 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 |