MCPcopy Create free account
hub / github.com/axboe/liburing / check_zero_splice

Function check_zero_splice

test/splice.c:216–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216static int check_zero_splice(struct io_uring *ring, struct test_ctx *ctx)
217{
218 int ret;
219
220 ret = do_splice(ring, ctx->fd_in, -1, ctx->pipe1[1], -1, 0);
221 if (ret)
222 return ret;
223
224 ret = do_splice(ring, ctx->pipe2[0], -1, ctx->pipe1[1], -1, 0);
225 if (ret)
226 return ret;
227
228 return 0;
229}
230
231static int splice_to_pipe(struct io_uring *ring, struct test_ctx *ctx)
232{

Callers 1

test_spliceFunction · 0.85

Calls 1

do_spliceFunction · 0.85

Tested by 1

test_spliceFunction · 0.68