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

Function t_register_buffers

test/helpers.c:155–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155enum t_setup_ret t_register_buffers(struct io_uring *ring,
156 const struct iovec *iovecs,
157 unsigned nr_iovecs)
158{
159 int ret;
160
161 ret = io_uring_register_buffers(ring, iovecs, nr_iovecs);
162 if (!ret)
163 return T_SETUP_OK;
164
165 if ((ret == -EPERM || ret == -ENOMEM) && geteuid()) {
166 fprintf(stdout, "too large non-root buffer registration, skip\n");
167 return T_SETUP_SKIP;
168 }
169
170 fprintf(stderr, "buffer register failed: %s\n", strerror(-ret));
171 return ret;
172}
173
174int t_create_socket_pair(int fd[2], bool stream)
175{

Callers 9

__test_ioFunction · 0.85
__test_ioFunction · 0.85
testFunction · 0.85
__test_ioFunction · 0.85
_test_ioFunction · 0.85
test_ioFunction · 0.85
test_regvec_cmdFunction · 0.85
mainFunction · 0.85
__test_ioFunction · 0.85

Calls 1

Tested by 2

test_ioFunction · 0.68
test_regvec_cmdFunction · 0.68