Function report |
Source Code:fs\splice.c |
Create Date:2022-07-28 20:11:25 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:default_file_splice_read
Proto:static ssize_t default_file_splice_read(struct file *in, loff_t *ppos, struct pipe_inode_info *pipe, size_t len, unsigned int flags)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | in | |
loff_t * | ppos | |
struct pipe_inode_info * | pipe | |
size_t | len | |
unsigned int | flags |
380 | copied = 0 |
384 | If pipe_full - Return true if the pipe is full*@head: The pipe ring head pointer*@tail: The pipe ring tail pointer*@limit: The maximum amount of slots available. Then Return -EAGAIN |
393 | iov_iter_pipe( & to, generic data direction definitions , pipe, len + offset) |
399 | nr_pages = DIV_ROUND_UP(res + base, PAGE_SIZE) |
402 | If nr_pages > PIPE_DEF_BUFFERS Then |
415 | this_len = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(size_t, len, PAGE_SIZE - offset) |
419 | offset = 0 |
423 | If res > 0 Then |
430 | out : |
431 | When i < nr_pages cycle Perform a free_page(), also freeing any swap cache associated with* this page if it is the last user of the page. |
434 | iov_iter_advance( & to, copied) |
435 | Return res |
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 |