Lines Matching full:restrictions
112 /* Restrictions allowed only if rings started disabled */ in io_register_restrictions()
116 /* We allow only a single restrictions registration */ in io_register_restrictions()
117 if (ctx->restrictions.registered) in io_register_restrictions()
142 ctx->restrictions.register_op); in io_register_restrictions()
150 __set_bit(res[i].sqe_op, ctx->restrictions.sqe_op); in io_register_restrictions()
153 ctx->restrictions.sqe_flags_allowed = res[i].sqe_flags; in io_register_restrictions()
156 ctx->restrictions.sqe_flags_required = res[i].sqe_flags; in io_register_restrictions()
165 /* Reset all restrictions if an error happened */ in io_register_restrictions()
167 memset(&ctx->restrictions, 0, sizeof(ctx->restrictions)); in io_register_restrictions()
169 ctx->restrictions.registered = true; in io_register_restrictions()
190 if (ctx->restrictions.registered) in io_register_enable_rings()
382 if (!test_bit(opcode, ctx->restrictions.register_op)) in __io_uring_register()