Lines Matching refs:ioctx
737 * Allocates and initializes an ioctx. Returns an ERR_PTR if it failed.
828 pr_debug("allocated ioctx %p[%ld]: mm=%p mask=0x%x\n",
845 pr_debug("error allocating ioctx %d\n", err);
1221 * Pull an event off of the ioctx's event ring. Returns the number of
1390 struct kioctx *ioctx = NULL;
1405 ioctx = ioctx_alloc(nr_events);
1406 ret = PTR_ERR(ioctx);
1407 if (!IS_ERR(ioctx)) {
1408 ret = put_user(ioctx->user_id, ctxp);
1410 kill_ioctx(current->mm, ioctx, NULL);
1411 percpu_ref_put(&ioctx->users);
1421 struct kioctx *ioctx = NULL;
1436 ioctx = ioctx_alloc(nr_events);
1437 ret = PTR_ERR(ioctx);
1438 if (!IS_ERR(ioctx)) {
1440 ret = put_user((u32)ioctx->user_id, ctx32p);
1442 kill_ioctx(current->mm, ioctx, NULL);
1443 percpu_ref_put(&ioctx->users);
1459 struct kioctx *ioctx = lookup_ioctx(ctx);
1460 if (likely(NULL != ioctx)) {
1471 ret = kill_ioctx(current->mm, ioctx, &wait);
1472 percpu_ref_put(&ioctx->users);
2231 struct kioctx *ioctx = lookup_ioctx(ctx_id);
2234 if (likely(ioctx)) {
2236 ret = read_events(ioctx, min_nr, nr, events, until);
2237 percpu_ref_put(&ioctx->users);