Lines Matching refs:ctx
27 free_rpc_construct_aio(struct rpc_construct_aio_ctx *ctx)
29 free(ctx->req.name);
30 free(ctx->req.filename);
31 free(ctx);
46 struct rpc_construct_aio_ctx *ctx = cb_arg;
47 struct spdk_jsonrpc_request *request = ctx->request;
51 spdk_json_write_string(w, ctx->req.name);
53 free_rpc_construct_aio(ctx);
60 struct rpc_construct_aio_ctx *ctx;
63 ctx = calloc(1, sizeof(*ctx));
64 if (!ctx) {
71 &ctx->req)) {
75 free_rpc_construct_aio(ctx);
79 ctx->request = request;
80 rc = create_aio_bdev(ctx->req.name, ctx->req.filename, ctx->req.block_size,
81 ctx->req.readonly, ctx->req.fallocate, &ctx->req.uuid);
84 free_rpc_construct_aio(ctx);
88 spdk_bdev_wait_for_examine(rpc_bdev_aio_create_cb, ctx);