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

Function do_register

src/register.c:13–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include "liburing/sanitize.h"
12
13static 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
30int io_uring_register_buffers_update_tag(struct io_uring *ring, unsigned off,
31 const struct iovec *iovecs,

Calls 2

__sys_io_uring_registerFunction · 0.50

Tested by

no test coverage detected