Function report |
Source Code:fs\io_uring.c |
Create Date:2022-07-28 20:22:19 |
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_register
Proto:static int io_sqe_files_register(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 |
4284 | ret = 0 |
4291 | If nr_args > IORING_MAX_FIXED_FILES Then Return -EMFILE |
4300 | If io_sqe_alloc_file_tables(ctx, nr_tables, nr_args) Then |
4301 | kfree(* If used, fixed file set. Writers must ensure that ->refs is dead, * readers must ensure that ->refs is alive as long as the file* is * used. Only updated through io_uring_register(2).) |
4303 | Return -ENOMEM |
4311 | If copy_from_user( & fd, & fds[i], size of fd ) Then Break |
4314 | If fd == -1 Then |
4315 | ret = 0 |
4316 | Continue |
4320 | index = i & IORING_FILE_TABLE_MASK |
4333 | If f_op == io_uring_fops Then |
4337 | ret = 0 |
4340 | If ret Then |
4341 | When i < nr_user_files cycle |
4351 | kfree(* If used, fixed file set. Writers must ensure that ->refs is dead, * readers must ensure that ->refs is alive as long as the file* is * used. Only updated through io_uring_register(2).) |
4353 | nr_user_files = 0 |
4354 | Return ret |
4357 | ret = io_sqe_files_scm(ctx) |
4358 | If ret Then io_sqe_files_unregister(ctx) |
4361 | Return ret |
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 |