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

Function liburing_sanitize_ring

src/sanitize.c:128–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 "Need an implementation for all IORING_OP_* codes");
127
128void liburing_sanitize_ring(struct io_uring *ring)
129{
130 struct io_uring_sq *sq = &ring->sq;
131 struct io_uring_sqe *sqe;
132 unsigned head = io_uring_load_sq_head(ring);
133 unsigned shift = io_uring_sqe_shift(ring);
134
135 while (head != sq->sqe_tail) {
136 sqe = &sq->sqes[(head & sq->ring_mask) << shift];
137 if (sqe->opcode < IORING_OP_LAST)
138 sanitize_handlers[sqe->opcode](sqe);
139 head++;
140 }
141}
142
143void liburing_sanitize_address(const void *addr)
144{

Callers 1

__io_uring_submitFunction · 0.70

Calls 2

io_uring_load_sq_headFunction · 0.85
io_uring_sqe_shiftFunction · 0.85

Tested by

no test coverage detected