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

Function create_sqe_and_submit

test/socket-io-cmd.c:41–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41static int create_sqe_and_submit(struct io_uring *ring, int32_t fd, int op)
42{
43 struct io_uring_sqe *sqe;
44 int ret;
45
46 assert(fd > 0);
47 sqe = io_uring_get_sqe(ring);
48 assert(sqe != NULL);
49
50 io_uring_prep_cmd_sock(sqe, op, fd, 0, 0, NULL, 0);
51 sqe->user_data = USERDATA;
52
53 /* Submitting SQE */
54 ret = io_uring_submit_and_wait(ring, 1);
55 if (ret <= 0)
56 return ret;
57
58 return 0;
59}
60
61static int receive_cqe(struct io_uring *ring)
62{

Callers 2

run_testFunction · 0.85
run_test_rawFunction · 0.85

Calls 3

io_uring_prep_cmd_sockFunction · 0.85
io_uring_submit_and_waitFunction · 0.85
io_uring_get_sqeFunction · 0.50

Tested by

no test coverage detected