Lines Matching refs:restrictions
1960 if (!test_bit(req->opcode, ctx->restrictions.sqe_op)) in io_check_restriction()
1963 if ((sqe_flags & ctx->restrictions.sqe_flags_required) != in io_check_restriction()
1964 ctx->restrictions.sqe_flags_required) in io_check_restriction()
1967 if (sqe_flags & ~(ctx->restrictions.sqe_flags_allowed | in io_check_restriction()
1968 ctx->restrictions.sqe_flags_required)) in io_check_restriction()
3679 if (ctx->restrictions.registered) in io_register_restrictions()
3704 ctx->restrictions.register_op); in io_register_restrictions()
3712 __set_bit(res[i].sqe_op, ctx->restrictions.sqe_op); in io_register_restrictions()
3715 ctx->restrictions.sqe_flags_allowed = res[i].sqe_flags; in io_register_restrictions()
3718 ctx->restrictions.sqe_flags_required = res[i].sqe_flags; in io_register_restrictions()
3729 memset(&ctx->restrictions, 0, sizeof(ctx->restrictions)); in io_register_restrictions()
3731 ctx->restrictions.registered = true; in io_register_restrictions()
3745 if (ctx->restrictions.registered) in io_register_enable_rings()
3903 if (!test_bit(opcode, ctx->restrictions.register_op)) in __io_uring_register()