MCPcopy Create free account
hub / github.com/F-Stack/f-stack / control_event_handle

Function control_event_handle

dpdk/examples/pipeline/conn.c:277–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277static int
278control_event_handle(struct conn *conn,
279 int fd_client)
280{
281 int status;
282
283 status = epoll_ctl(conn->fd_client_group,
284 EPOLL_CTL_DEL,
285 fd_client,
286 NULL);
287 if (status == -1)
288 return -1;
289
290 status = close(fd_client);
291 if (status == -1)
292 return -1;
293
294 return 0;
295}
296
297int
298conn_poll_for_msg(struct conn *conn)

Callers 1

conn_poll_for_msgFunction · 0.70

Calls 2

epoll_ctlFunction · 0.85
closeFunction · 0.50

Tested by

no test coverage detected