Lines Matching full:restrictions
166 /* Restrictions allowed only if rings started disabled */ in io_register_restrictions()
170 /* We allow only a single restrictions registration */ in io_register_restrictions()
171 if (ctx->restrictions.registered) in io_register_restrictions()
196 ctx->restrictions.register_op); in io_register_restrictions()
204 __set_bit(res[i].sqe_op, ctx->restrictions.sqe_op); in io_register_restrictions()
207 ctx->restrictions.sqe_flags_allowed = res[i].sqe_flags; in io_register_restrictions()
210 ctx->restrictions.sqe_flags_required = res[i].sqe_flags; in io_register_restrictions()
219 /* Reset all restrictions if an error happened */ in io_register_restrictions()
221 memset(&ctx->restrictions, 0, sizeof(ctx->restrictions)); in io_register_restrictions()
223 ctx->restrictions.registered = true; in io_register_restrictions()
244 if (ctx->restrictions.registered) in io_register_enable_rings()
408 if (!test_bit(opcode, ctx->restrictions.register_op)) in __io_uring_register()