Lines Matching defs:ioctx
784 * Allocates and initializes an ioctx. Returns an ERR_PTR if it failed.
875 pr_debug("allocated ioctx %p[%ld]: mm=%p mask=0x%x\n",
892 pr_debug("error allocating ioctx %d\n", err);
1268 * Pull an event off of the ioctx's event ring. Returns the number of
1437 struct kioctx *ioctx = NULL;
1452 ioctx = ioctx_alloc(nr_events);
1453 ret = PTR_ERR(ioctx);
1454 if (!IS_ERR(ioctx)) {
1455 ret = put_user(ioctx->user_id, ctxp);
1457 kill_ioctx(current->mm, ioctx, NULL);
1458 percpu_ref_put(&ioctx->users);
1468 struct kioctx *ioctx = NULL;
1483 ioctx = ioctx_alloc(nr_events);
1484 ret = PTR_ERR(ioctx);
1485 if (!IS_ERR(ioctx)) {
1487 ret = put_user((u32)ioctx->user_id, ctx32p);
1489 kill_ioctx(current->mm, ioctx, NULL);
1490 percpu_ref_put(&ioctx->users);
1506 struct kioctx *ioctx = lookup_ioctx(ctx);
1507 if (likely(NULL != ioctx)) {
1518 ret = kill_ioctx(current->mm, ioctx, &wait);
1519 percpu_ref_put(&ioctx->users);
2283 struct kioctx *ioctx = lookup_ioctx(ctx_id);
2286 if (likely(ioctx)) {
2288 ret = read_events(ioctx, min_nr, nr, events, until);
2289 percpu_ref_put(&ioctx->users);