Lines Matching refs:ioctx
715 * Allocates and initializes an ioctx. Returns an ERR_PTR if it failed.
806 pr_debug("allocated ioctx %p[%ld]: mm=%p mask=0x%x\n",
823 pr_debug("error allocating ioctx %d\n", err);
1186 * Pull an event off of the ioctx's event ring. Returns the number of
1330 struct kioctx *ioctx = NULL;
1345 ioctx = ioctx_alloc(nr_events);
1346 ret = PTR_ERR(ioctx);
1347 if (!IS_ERR(ioctx)) {
1348 ret = put_user(ioctx->user_id, ctxp);
1350 kill_ioctx(current->mm, ioctx, NULL);
1351 percpu_ref_put(&ioctx->users);
1361 struct kioctx *ioctx = NULL;
1376 ioctx = ioctx_alloc(nr_events);
1377 ret = PTR_ERR(ioctx);
1378 if (!IS_ERR(ioctx)) {
1380 ret = put_user((u32)ioctx->user_id, ctx32p);
1382 kill_ioctx(current->mm, ioctx, NULL);
1383 percpu_ref_put(&ioctx->users);
1399 struct kioctx *ioctx = lookup_ioctx(ctx);
1400 if (likely(NULL != ioctx)) {
1411 ret = kill_ioctx(current->mm, ioctx, &wait);
1412 percpu_ref_put(&ioctx->users);
2187 struct kioctx *ioctx = NULL;
2196 ioctx = lookup_ioctx(ctx_id);
2197 if (likely(ioctx)) {
2199 ret = read_events(ioctx, min_nr, nr, events, until);
2200 percpu_ref_put(&ioctx->users);