Function report |
Source Code:fs\io_uring.c |
Create Date:2022-07-28 20:22:20 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:io_sqe_files_update
Proto:static int io_sqe_files_update(struct io_ring_ctx *ctx, void __user *arg, unsigned nr_args)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct io_ring_ctx * | ctx | |
| void __user * | arg | |
| unsigned | nr_args |
| 4482 | If copy_from_user( & up, arg, size of up ) Then Return -EFAULT |
| 4488 | If done > nr_user_files Then Return -EINVAL |
| 4491 | done = 0 |
| 4492 | fds = u64_to_user_ptr( __s32 * ) |
| 4497 | err = 0 |
| 4498 | If copy_from_user( & fd, & fds[done], size of fd ) Then |
| 4504 | index = i & IORING_FILE_TABLE_MASK |
| 4506 | io_sqe_file_unregister(ctx, i) |
| 4509 | If fd != -1 Then |
| 4513 | If Not file Then |
| 4525 | If f_op == io_uring_fops Then |
| 4531 | err = io_sqe_file_register(ctx, file, i) |
| 4532 | If err Then Break |
| 4535 | nr_args-- |
| 4536 | done++ |
| 4537 | offset++ |
| Name | Describe |
|---|---|
| __io_uring_register |
| 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 |