Function report |
Source Code:fs\splice.c |
Create Date:2022-07-28 20:11:27 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_splice_direct - splices data directly between two files*@in: file to splice from*@ppos: input file offset*@out: file to splice to*@opos: output file offset*@len: number of bytes to splice*@flags: splice modifier flags* Description:
Proto:long do_splice_direct(struct file *in, loff_t *ppos, struct file *out, loff_t *opos, size_t len, unsigned int flags)
Type:long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct file * | in | |
| loff_t * | ppos | |
| struct file * | out | |
| loff_t * | opos | |
| size_t | len | |
| unsigned int | flags |
| 1060 | struct splice_desc sd = {current length = len, maining length = len, splice flags = flags, le position = * ppos, le to read/write = out, sendfile: output position = opos, } |
| 1070 | If Value for the false possibility is greater at compile time(!(f_mode & le is open for writing )) Then Return -EBADF |
| 1073 | If Value for the false possibility is greater at compile time(f_flags & O_APPEND) Then Return -EINVAL |
| 1077 | If Value for the false possibility is greater at compile time(ret < 0) Then Return ret |
| 1081 | If ret > 0 Then ppos = le position |
| 1084 | Return ret |
| Name | Describe |
|---|---|
| generic_copy_file_range | generic_copy_file_range - copy data between two files*@file_in: file structure to read from*@pos_in: file offset to read from*@file_out: file structure to write data to*@pos_out: file offset to write data to*@len: amount of data to copy*@flags: copy flags |
| do_sendfile |
| 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 |