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

Function sendPing

examples/napi-busy-poll-server.c:191–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191static void sendPing(struct ctx *ctx)
192{
193 struct io_uring_sqe *sqe = io_uring_get_sqe(&ctx->ring);
194
195 io_uring_prep_sendmsg(sqe, ctx->sockfd, &ctx->msg, 0);
196 sqe->user_data = encodeUserData(IOURING_SENDMSG, ctx->sockfd);
197}
198
199static void receivePing(struct ctx *ctx)
200{

Callers 1

completionFunction · 0.70

Calls 2

encodeUserDataFunction · 0.70
io_uring_get_sqeFunction · 0.50

Tested by

no test coverage detected