Function report | 
Source Code:fs\read_write.c | 
Create Date:2022-07-28 20:01:28 | 
| Last Modify:2020-03-18 10:18:51 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:py_file_range() differs from regular file read and write in that it* specifically allows return partial success. When it does so is up to* the copy_file_range method.
Proto:ssize_t vfs_copy_file_range(struct file *file_in, loff_t pos_in, struct file *file_out, loff_t pos_out, size_t len, unsigned int flags)
Type:ssize_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct file * | file_in | |
| loff_t | pos_in | |
| struct file * | file_out | |
| loff_t | pos_out | |
| size_t | len | |
| unsigned int | flags | 
| 1636 | If Value for the false possibility is greater at compile time(ret) Then Return ret | 
| 1639 | ret = rw_verify_area(generic data direction definitions , file_in, & pos_in, len) | 
| 1640 | If Value for the false possibility is greater at compile time(ret) Then Return ret | 
| 1644 | If Value for the false possibility is greater at compile time(ret) Then Return ret | 
| 1647 | If len == 0 Then Return 0 | 
| 1650 | file_start_write(file_out) | 
| 1656 | If remap_file_range && i_sb == i_sb Then | 
| 1664 | If cloned > 0 Then | 
| 1672 | WARN_ON_ONCE(ret == - EOPNOTSUPP) | 
| 1673 | done : | 
| 1674 | If ret > 0 Then | 
| 1676 | add_rchar(current process, ret) | 
| 1678 | add_wchar(current process, ret) | 
| 1681 | inc_syscr(current process) | 
| 1682 | inc_syscw(current process) | 
| 1684 | file_end_write(file_out) | 
| 1686 | Return ret | 
| Name | Describe | 
|---|---|
| SYSCALL_DEFINE6 | 
| 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  |