Lines Matching refs:ctx_id
595 static struct kioctx *lookup_ioctx(unsigned long ctx_id)
604 if (ctx->user_id == ctx_id && !ctx->dead) {
1653 long do_io_submit(aio_context_t ctx_id, long nr,
1670 ctx = lookup_ioctx(ctx_id);
1707 * specified by ctx_id is invalid, if nr is < 0, if the iocb at
1716 SYSCALL_DEFINE3(io_submit, aio_context_t, ctx_id, long, nr,
1719 return do_io_submit(ctx_id, nr, iocbpp, 0);
1747 * May fail with -EINVAL if aio_context specified by ctx_id is
1751 SYSCALL_DEFINE3(io_cancel, aio_context_t, ctx_id, struct iocb __user *, iocb,
1764 ctx = lookup_ioctx(ctx_id);
1803 * the completion queue for the aio_context specified by ctx_id. If
1805 * -EINVAL if ctx_id is invalid, if min_nr is out of range, if nr is
1814 SYSCALL_DEFINE5(io_getevents, aio_context_t, ctx_id,
1820 struct kioctx *ioctx = lookup_ioctx(ctx_id);
1829 asmlinkage_protect(5, ret, ctx_id, min_nr, nr, events, timeout);