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

Function fail_tee_offset

test/splice.c:320–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320static int fail_tee_offset(struct io_uring *ring, struct test_ctx *ctx)
321{
322 int ret;
323
324 ret = do_splice_op(ring, ctx->pipe2[0], -1, ctx->pipe1[1], 0,
325 BUF_SIZE, IORING_OP_TEE);
326 if (ret != -ESPIPE && ret != -EINVAL)
327 return ret;
328
329 ret = do_splice_op(ring, ctx->pipe2[0], 0, ctx->pipe1[1], -1,
330 BUF_SIZE, IORING_OP_TEE);
331 if (ret != -ESPIPE && ret != -EINVAL)
332 return ret;
333
334 return 0;
335}
336
337static int check_tee(struct io_uring *ring, struct test_ctx *ctx)
338{

Callers 1

test_spliceFunction · 0.85

Calls 1

do_splice_opFunction · 0.85

Tested by 1

test_spliceFunction · 0.68