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

Function memif_msg_enq

dpdk/drivers/net/memif/memif_socket.c:85–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85static struct memif_msg_queue_elt *
86memif_msg_enq(struct memif_control_channel *cc)
87{
88 struct memif_msg_queue_elt *e;
89
90 e = rte_zmalloc("memif_msg", sizeof(struct memif_msg_queue_elt), 0);
91 if (e == NULL) {
92 MIF_LOG(ERR, "Failed to allocate control message.");
93 return NULL;
94 }
95
96 e->fd = -1;
97 TAILQ_INSERT_TAIL(&cc->msg_queue, e, next);
98
99 return e;
100}
101
102void
103memif_msg_enq_disconnect(struct memif_control_channel *cc, const char *reason,

Callers 8

memif_msg_enq_disconnectFunction · 0.85
memif_msg_enq_helloFunction · 0.85
memif_msg_enq_ackFunction · 0.85
memif_msg_enq_initFunction · 0.85
memif_msg_enq_add_regionFunction · 0.85
memif_msg_enq_add_ringFunction · 0.85
memif_msg_enq_connectFunction · 0.85
memif_msg_enq_connectedFunction · 0.85

Calls 1

rte_zmallocFunction · 0.85

Tested by

no test coverage detected