Lines Matching refs:pipe
70 int pipe[2]; /**< Fail-safe communication pipe. */ member
93 if (ctx->pipe[0] != -1) in vdev_netvsc_ctx_destroy()
94 close(ctx->pipe[0]); in vdev_netvsc_ctx_destroy()
95 if (ctx->pipe[1] != -1) in vdev_netvsc_ctx_destroy()
96 close(ctx->pipe[1]); in vdev_netvsc_ctx_destroy()
416 ret = write(ctx->pipe[1], addr, len + 1); in vdev_netvsc_device_probe()
431 ret = write(ctx->pipe[1], "\n", 1); in vdev_netvsc_device_probe()
435 fsync(ctx->pipe[1]); in vdev_netvsc_device_probe()
578 ctx->pipe[0] = -1; in vdev_netvsc_netvsc_probe()
579 ctx->pipe[1] = -1; in vdev_netvsc_netvsc_probe()
581 if (pipe(ctx->pipe) == -1) { in vdev_netvsc_netvsc_probe()
588 for (i = 0; i != RTE_DIM(ctx->pipe); ++i) { in vdev_netvsc_netvsc_probe()
589 int flf = fcntl(ctx->pipe[i], F_GETFL); in vdev_netvsc_netvsc_probe()
592 fcntl(ctx->pipe[i], F_SETFL, flf | O_NONBLOCK) != -1) in vdev_netvsc_netvsc_probe()
596 " descriptor #%u (%d): %s", i, ctx->pipe[i], in vdev_netvsc_netvsc_probe()
612 ctx->pipe[0], ctx->id, ctx->if_name); in vdev_netvsc_netvsc_probe()