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

Function io_uring_buf_ring_head

src/register.c:350–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350int io_uring_buf_ring_head(struct io_uring *ring, int buf_group, uint16_t *head)
351{
352 liburing_sanitize_address(head);
353
354 struct io_uring_buf_status buf_status = {
355 .buf_group = buf_group,
356 };
357 int ret;
358
359 ret = do_register(ring, IORING_REGISTER_PBUF_STATUS, &buf_status, 1);
360 if (ret)
361 return ret;
362 *head = buf_status.head;
363 return 0;
364}
365
366int io_uring_register_sync_cancel(struct io_uring *ring,
367 struct io_uring_sync_cancel_reg *reg)

Callers 2

testFunction · 0.85
liburing.hFile · 0.85

Calls 2

do_registerFunction · 0.85

Tested by

no test coverage detected