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

Function reportNapi

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

Source from the content-addressed store, hash-verified

175}
176
177static void reportNapi(struct ctx *ctx)
178{
179 unsigned int napi_id = 0;
180 socklen_t len = sizeof(napi_id);
181
182 getsockopt(ctx->sockfd, SOL_SOCKET, SO_INCOMING_NAPI_ID, &napi_id, &len);
183 if (napi_id)
184 printf(" napi id: %d\n", napi_id);
185 else
186 printf(" unassigned napi id\n");
187
188 ctx->napi_check = true;
189}
190
191static void sendPing(struct ctx *ctx)
192{

Callers 1

completionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected