Function report |
Source Code:fs\read_write.c |
Create Date:2022-07-28 20:01:26 |
| Last Modify:2020-03-18 10:18:51 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_sendfile
Proto:static ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos, size_t count, loff_t max)
Type:ssize_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | out_fd | |
| int | in_fd | |
| loff_t * | ppos | |
| size_t | count | |
| loff_t | max |
| 1410 | If Not (f_mode & le is open for reading ) Then Go to fput_in |
| 1413 | If Not ppos Then |
| 1415 | Else |
| 1417 | If Not (f_mode & le can be accessed using pread ) Then Go to fput_in |
| 1420 | retval = rw_verify_area(generic data direction definitions , file, & pos, count) |
| 1423 | If count > MAX_RW_COUNT Then count = MAX_RW_COUNT |
| 1433 | If Not (f_mode & le is open for writing ) Then Go to fput_out |
| 1435 | in_inode = file_inode(file) |
| 1436 | out_inode = file_inode(file) |
| 1442 | If Not max Then max = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(s_maxbytes, s_maxbytes) |
| 1445 | If Value for the false possibility is greater at compile time(pos + count > max) Then |
| 1452 | fl = 0 |
| 1463 | file_start_write(file) |
| 1465 | file_end_write(file) |
| 1467 | If retval > 0 Then |
| 1468 | add_rchar(current process, retval) |
| 1469 | add_wchar(current process, retval) |
| 1479 | inc_syscr(current process) |
| 1480 | inc_syscw(current process) |
| 1484 | fput_out : |
| 1486 | fput_in : |
| 1488 | out : |
| 1489 | Return retval |
| Name | Describe |
|---|---|
| SYSCALL_DEFINE4 | |
| SYSCALL_DEFINE4 | |
| COMPAT_SYSCALL_DEFINE4 | |
| COMPAT_SYSCALL_DEFINE4 |
| 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 |