Lines Matching refs:nr_args
599 u32 nr_args;
1094 unsigned nr_args);
6459 req->rsrc_update.nr_args = READ_ONCE(sqe->len);
6460 if (!req->rsrc_update.nr_args)
6481 &up, req->rsrc_update.nr_args);
8376 unsigned nr_args, u64 __user *tags)
8385 if (!nr_args)
8387 if (nr_args > IORING_MAX_FIXED_FILES)
8389 if (nr_args > rlimit(RLIMIT_NOFILE))
8394 ret = io_rsrc_data_alloc(ctx, io_rsrc_file_put, tags, nr_args,
8400 if (!io_alloc_file_tables(&ctx->file_table, nr_args))
8403 for (i = 0; i < nr_args; i++, ctx->nr_user_files++) {
8564 unsigned nr_args)
8577 if (up->offset + nr_args > ctx->nr_user_files)
8580 for (done = 0; done < nr_args; done++) {
9150 static int io_buffers_map_alloc(struct io_ring_ctx *ctx, unsigned int nr_args)
9152 ctx->user_bufs = kcalloc(nr_args, sizeof(*ctx->user_bufs), GFP_KERNEL);
9181 unsigned int nr_args, u64 __user *tags)
9190 if (!nr_args || nr_args > IORING_MAX_REG_BUFFERS)
9195 ret = io_rsrc_data_alloc(ctx, io_rsrc_buf_put, tags, nr_args, &data);
9198 ret = io_buffers_map_alloc(ctx, nr_args);
9204 for (i = 0; i < nr_args; i++, ctx->nr_user_bufs++) {
9234 unsigned int nr_args)
9245 if (up->offset + nr_args > ctx->nr_user_bufs)
9248 for (done = 0; done < nr_args; done++) {
10526 static int io_probe(struct io_ring_ctx *ctx, void __user *arg, unsigned nr_args)
10532 size = struct_size(p, ops, nr_args);
10547 if (nr_args > IORING_OP_LAST)
10548 nr_args = IORING_OP_LAST;
10550 for (i = 0; i < nr_args; i++) {
10583 unsigned int nr_args)
10597 if (!arg || nr_args > IORING_MAX_RESTRICTIONS)
10600 size = array_size(nr_args, sizeof(*res));
10610 for (i = 0; i < nr_args; i++) {
10668 unsigned nr_args)
10673 if (check_add_overflow(up->offset, nr_args, &tmp))
10681 return __io_sqe_files_update(ctx, up, nr_args);
10683 return __io_sqe_buffers_update(ctx, up, nr_args);
10689 unsigned nr_args)
10693 if (!nr_args)
10700 return __io_register_rsrc_update(ctx, IORING_RSRC_FILE, &up, nr_args);
10928 void __user *arg, unsigned nr_args)
10956 ret = io_sqe_buffers_register(ctx, arg, nr_args, NULL);
10960 if (arg || nr_args)
10965 ret = io_sqe_files_register(ctx, arg, nr_args, NULL);
10969 if (arg || nr_args)
10974 ret = io_register_files_update(ctx, arg, nr_args);
10979 if (nr_args != 1)
10991 if (arg || nr_args)
10997 if (!arg || nr_args > 256)
10999 ret = io_probe(ctx, arg, nr_args);
11003 if (arg || nr_args)
11011 ret = io_unregister_personality(ctx, nr_args);
11015 if (arg || nr_args)
11020 ret = io_register_restrictions(ctx, arg, nr_args);
11023 ret = io_register_rsrc(ctx, arg, nr_args, IORING_RSRC_FILE);
11026 ret = io_register_rsrc_update(ctx, arg, nr_args,
11030 ret = io_register_rsrc(ctx, arg, nr_args, IORING_RSRC_BUFFER);
11033 ret = io_register_rsrc_update(ctx, arg, nr_args,
11038 if (!arg || !nr_args)
11040 ret = io_register_iowq_aff(ctx, arg, nr_args);
11044 if (arg || nr_args)
11050 if (!arg || nr_args != 2)
11068 void __user *, arg, unsigned int, nr_args)
11090 ret = __io_uring_register(ctx, opcode, arg, nr_args);