Function report |
Source Code:lib\iov_iter.c |
Create Date:2022-07-28 06:23:44 |
| Last Modify:2022-05-21 11:43:54 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:csum_and_copy_from_iter_full
Proto:bool csum_and_copy_from_iter_full(void *addr, size_t bytes, __wsum *csum, struct iov_iter *i)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| void * | addr | |
| size_t | bytes | |
| __wsum * | csum | |
| struct iov_iter * | i |
| 1483 | off = 0 |
| 1486 | WARN_ON(1) |
| 1487 | Return false |
| 1489 | If Value for the false possibility is greater at compile time(count < bytes) Then Return false |
| 1491 | iterate_all_kinds(i, bytes, v, ({interr = 0;next = csum_and_copy_from_user(iov_base, (to += iov_len) - iov_len, iov_len, 0, & err);If err Then Return false;sum = csum_block_add(sum, next, off);off += iov_len;0;}), ({char * p = kmap_atomic(bv_page);sum = csum_and_memcpy((to += bv_len) - bv_len, p + bv_offset, bv_len, sum, off);Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(p);off += bv_len;}), ({sum = csum_and_memcpy((to += iov_len) - iov_len, iov_base, iov_len, sum, off);off += iov_len;})) |
| 1516 | iov_iter_advance(i, bytes) |
| 1517 | Return true |
| Name | Describe |
|---|---|
| skb_add_data | |
| skb_do_copy_data_nocache |
| 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 |