Lines Matching defs:nr_args
41 unsigned nr_args)
47 if (nr_args > IORING_OP_LAST)
48 nr_args = IORING_OP_LAST;
50 size = struct_size(p, ops, nr_args);
60 for (i = 0; i < nr_args; i++) {
106 static __cold int io_parse_restrictions(void __user *arg, unsigned int nr_args,
113 if (!arg || nr_args > IORING_MAX_RESTRICTIONS)
116 size = array_size(nr_args, sizeof(*res));
126 for (i = 0; i < nr_args; i++) {
157 void __user *arg, unsigned int nr_args)
169 ret = io_parse_restrictions(arg, nr_args, &ctx->restrictions);
622 void __user *arg, unsigned nr_args)
649 ret = io_sqe_buffers_register(ctx, arg, nr_args, NULL);
653 if (arg || nr_args)
661 ret = io_sqe_files_register(ctx, arg, nr_args, NULL);
665 if (arg || nr_args)
670 ret = io_register_files_update(ctx, arg, nr_args);
674 if (nr_args != 1)
680 if (nr_args != 1)
686 if (arg || nr_args)
692 if (!arg || nr_args > 256)
694 ret = io_probe(ctx, arg, nr_args);
698 if (arg || nr_args)
706 ret = io_unregister_personality(ctx, nr_args);
710 if (arg || nr_args)
715 ret = io_register_restrictions(ctx, arg, nr_args);
718 ret = io_register_rsrc(ctx, arg, nr_args, IORING_RSRC_FILE);
721 ret = io_register_rsrc_update(ctx, arg, nr_args,
725 ret = io_register_rsrc(ctx, arg, nr_args, IORING_RSRC_BUFFER);
728 ret = io_register_rsrc_update(ctx, arg, nr_args,
733 if (!arg || !nr_args)
735 ret = io_register_iowq_aff(ctx, arg, nr_args);
739 if (arg || nr_args)
745 if (!arg || nr_args != 2)
750 ret = io_ringfd_register(ctx, arg, nr_args);
753 ret = io_ringfd_unregister(ctx, arg, nr_args);
757 if (!arg || nr_args != 1)
763 if (!arg || nr_args != 1)
769 if (!arg || nr_args != 1)
775 if (!arg || nr_args)
781 if (!arg || nr_args != 1)
787 if (!arg || nr_args != 1)
793 if (nr_args != 1)
799 if (!arg || nr_args)
805 if (!arg || nr_args != 1)
811 if (!arg || nr_args != 1)
817 if (!arg || nr_args != 1)
823 if (!arg || nr_args != 1)
828 ret = io_query(ctx, arg, nr_args);
831 ret = io_zcrx_return_bufs(ctx, arg, nr_args);
875 static int io_uring_register_send_msg_ring(void __user *arg, unsigned int nr_args)
879 if (!arg || nr_args != 1)
897 unsigned int nr_args)
901 return io_uring_register_send_msg_ring(arg, nr_args);
903 return io_query(NULL, arg, nr_args);
909 void __user *, arg, unsigned int, nr_args)
923 return io_uring_register_blind(opcode, arg, nr_args);
931 ret = __io_uring_register(ctx, opcode, arg, nr_args);