Function report |
Source Code:fs\splice.c |
Create Date:2022-07-28 20:11:28 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:iter_to_pipe
Proto:static int iter_to_pipe(struct iov_iter *from, struct pipe_inode_info *pipe, unsigned flags)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct iov_iter * | from | |
| struct pipe_inode_info * | pipe | |
| unsigned | flags |
| 1225 | struct pipe_buffer buf = {ops = & user_page_pipe_buf_ops, flags = flags} |
| 1229 | total = 0 |
| 1230 | ret = 0 |
| 1231 | bool failed = false |
| 1233 | When iov_iter_count(from) && Not failed cycle |
| 1239 | copied = iov_iter_get_pages(from, pages, ~0UL, 16, & start) |
| 1240 | If copied <= 0 Then |
| 1246 | size = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(int, copied, PAGE_SIZE - start) |
| 1247 | If Not failed Then |
| 1251 | ret = add_to_pipe(pipe, & buf) |
| 1252 | If Value for the false possibility is greater at compile time(ret < 0) Then |
| 1253 | failed = true |
| 1254 | Else |
| 1255 | iov_iter_advance(from, ret) |
| 1258 | Else |
| Name | Describe |
|---|---|
| vmsplice_to_pipe | vmsplice splices a user address range into a pipe. It can be thought of* as splice-from-memory, where the regular splice is splice-from-file (or* to file). In both cases the output is a pipe, naturally. |
| 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 |