| 505 | } |
| 506 | |
| 507 | __cold struct io_uring_probe *io_uring_get_probe(void) |
| 508 | { |
| 509 | struct io_uring ring; |
| 510 | struct io_uring_probe *probe; |
| 511 | int r; |
| 512 | |
| 513 | r = io_uring_queue_init(2, &ring, 0); |
| 514 | if (r < 0) |
| 515 | return NULL; |
| 516 | |
| 517 | probe = io_uring_get_probe_ring(&ring); |
| 518 | io_uring_queue_exit(&ring); |
| 519 | return probe; |
| 520 | } |
| 521 | |
| 522 | __cold void io_uring_free_probe(struct io_uring_probe *probe) |
| 523 | { |
no test coverage detected