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

Function cause_overflow

test/accept.c:230–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230static void cause_overflow(struct io_uring *ring)
231{
232 int i, ret;
233
234 for (i = 0; i < ring->cq.ring_entries; i++) {
235 struct io_uring_sqe *sqe = io_uring_get_sqe(ring);
236
237 io_uring_prep_nop(sqe);
238 io_uring_sqe_set_data64(sqe, NOP_USER_DATA);
239 ret = io_uring_submit(ring);
240 assert(ret != -1);
241 }
242
243}
244
245static void clear_overflow(struct io_uring *ring)
246{

Callers 1

test_loopFunction · 0.85

Calls 2

io_uring_submitFunction · 0.85
io_uring_get_sqeFunction · 0.50

Tested by 1

test_loopFunction · 0.68