Lines Matching refs:ioctx
1314 struct kioctx *ioctx = NULL; in SYSCALL_DEFINE2() local
1329 ioctx = ioctx_alloc(nr_events); in SYSCALL_DEFINE2()
1330 ret = PTR_ERR(ioctx); in SYSCALL_DEFINE2()
1331 if (!IS_ERR(ioctx)) { in SYSCALL_DEFINE2()
1332 ret = put_user(ioctx->user_id, ctxp); in SYSCALL_DEFINE2()
1334 kill_ioctx(current->mm, ioctx, NULL); in SYSCALL_DEFINE2()
1335 percpu_ref_put(&ioctx->users); in SYSCALL_DEFINE2()
1345 struct kioctx *ioctx = NULL; in COMPAT_SYSCALL_DEFINE2() local
1360 ioctx = ioctx_alloc(nr_events); in COMPAT_SYSCALL_DEFINE2()
1361 ret = PTR_ERR(ioctx); in COMPAT_SYSCALL_DEFINE2()
1362 if (!IS_ERR(ioctx)) { in COMPAT_SYSCALL_DEFINE2()
1364 ret = put_user((u32)ioctx->user_id, ctx32p); in COMPAT_SYSCALL_DEFINE2()
1366 kill_ioctx(current->mm, ioctx, NULL); in COMPAT_SYSCALL_DEFINE2()
1367 percpu_ref_put(&ioctx->users); in COMPAT_SYSCALL_DEFINE2()
1383 struct kioctx *ioctx = lookup_ioctx(ctx); in SYSCALL_DEFINE1() local
1384 if (likely(NULL != ioctx)) { in SYSCALL_DEFINE1()
1395 ret = kill_ioctx(current->mm, ioctx, &wait); in SYSCALL_DEFINE1()
1396 percpu_ref_put(&ioctx->users); in SYSCALL_DEFINE1()
2035 struct kioctx *ioctx = lookup_ioctx(ctx_id); in do_io_getevents() local
2038 if (likely(ioctx)) { in do_io_getevents()
2040 ret = read_events(ioctx, min_nr, nr, events, until); in do_io_getevents()
2041 percpu_ref_put(&ioctx->users); in do_io_getevents()