| 348 | } |
| 349 | |
| 350 | int 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 | |
| 366 | int io_uring_register_sync_cancel(struct io_uring *ring, |
| 367 | struct io_uring_sync_cancel_reg *reg) |
no test coverage detected