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

Function trigger_event

test/multicqes_drain.c:74–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74static int trigger_event(struct io_uring *ring, int p[])
75{
76 int ret;
77 if ((ret = write_pipe(p[1], "foo")) != 3) {
78 fprintf(stderr, "bad write return %d\n", ret);
79 return 1;
80 }
81 usleep(1000);
82 io_uring_get_events(ring);
83 read_pipe(p[0]);
84 return 0;
85}
86
87static void io_uring_sqe_prep(int op, struct io_uring_sqe *sqe,
88 unsigned sqe_flags, int arg)

Callers 2

test_generic_drainFunction · 0.85
test_simple_drainFunction · 0.85

Calls 3

write_pipeFunction · 0.85
io_uring_get_eventsFunction · 0.85
read_pipeFunction · 0.85

Tested by 2

test_generic_drainFunction · 0.68
test_simple_drainFunction · 0.68