| 11 | #include "liburing/sanitize.h" |
| 12 | |
| 13 | static inline int do_register(struct io_uring *ring, unsigned int opcode, |
| 14 | const void *arg, unsigned int nr_args) |
| 15 | { |
| 16 | int fd; |
| 17 | |
| 18 | liburing_sanitize_address(arg); |
| 19 | |
| 20 | if (ring->int_flags & INT_FLAG_REG_REG_RING) { |
| 21 | opcode |= IORING_REGISTER_USE_REGISTERED_RING; |
| 22 | fd = ring->enter_ring_fd; |
| 23 | } else { |
| 24 | fd = ring->ring_fd; |
| 25 | } |
| 26 | |
| 27 | return __sys_io_uring_register(fd, opcode, arg, nr_args); |
| 28 | } |
| 29 | |
| 30 | int io_uring_register_buffers_update_tag(struct io_uring *ring, unsigned off, |
| 31 | const struct iovec *iovecs, |
no test coverage detected