Lines Matching refs:ioctx
734 * Allocates and initializes an ioctx. Returns an ERR_PTR if it failed.
825 pr_debug("allocated ioctx %p[%ld]: mm=%p mask=0x%x\n",
842 pr_debug("error allocating ioctx %d\n", err);
1199 * Pull an event off of the ioctx's event ring. Returns the number of
1340 struct kioctx *ioctx = NULL;
1355 ioctx = ioctx_alloc(nr_events);
1356 ret = PTR_ERR(ioctx);
1357 if (!IS_ERR(ioctx)) {
1358 ret = put_user(ioctx->user_id, ctxp);
1360 kill_ioctx(current->mm, ioctx, NULL);
1361 percpu_ref_put(&ioctx->users);
1371 struct kioctx *ioctx = NULL;
1386 ioctx = ioctx_alloc(nr_events);
1387 ret = PTR_ERR(ioctx);
1388 if (!IS_ERR(ioctx)) {
1390 ret = put_user((u32)ioctx->user_id, ctx32p);
1392 kill_ioctx(current->mm, ioctx, NULL);
1393 percpu_ref_put(&ioctx->users);
1409 struct kioctx *ioctx = lookup_ioctx(ctx);
1410 if (likely(NULL != ioctx)) {
1421 ret = kill_ioctx(current->mm, ioctx, &wait);
1422 percpu_ref_put(&ioctx->users);
2181 struct kioctx *ioctx = lookup_ioctx(ctx_id);
2184 if (likely(ioctx)) {
2186 ret = read_events(ioctx, min_nr, nr, events, until);
2187 percpu_ref_put(&ioctx->users);