Lines Matching defs:restrictions
107 struct io_restriction *restrictions)
131 __set_bit(res[i].register_op, restrictions->register_op);
136 __set_bit(res[i].sqe_op, restrictions->sqe_op);
139 restrictions->sqe_flags_allowed = res[i].sqe_flags;
142 restrictions->sqe_flags_required = res[i].sqe_flags;
165 /* We allow only a single restrictions registration */
166 if (ctx->restrictions.registered)
169 ret = io_parse_restrictions(arg, nr_args, &ctx->restrictions);
170 /* Reset all restrictions if an error happened */
172 memset(&ctx->restrictions, 0, sizeof(ctx->restrictions));
174 ctx->restrictions.registered = true;
193 if (ctx->restrictions.registered)
646 if (!test_bit(opcode, ctx->restrictions.register_op))