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

Function queue_send

test/accept.c:63–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63static void *queue_send(struct io_uring *ring, int fd)
64{
65 struct io_uring_sqe *sqe;
66 struct data *d;
67
68 d = t_malloc(sizeof(*d));
69 d->iov.iov_base = d->buf;
70 d->iov.iov_len = sizeof(d->buf);
71
72 sqe = io_uring_get_sqe(ring);
73 io_uring_prep_writev(sqe, fd, &d->iov, 1, 0);
74 sqe->user_data = 1;
75
76 return d;
77}
78
79static void *queue_recv(struct io_uring *ring, int fd, bool fixed)
80{

Callers 1

test_loopFunction · 0.70

Calls 2

t_mallocFunction · 0.85
io_uring_get_sqeFunction · 0.50

Tested by 1

test_loopFunction · 0.56