MCPcopy Index your code
hub / github.com/F-Stack/f-stack / ff_ipc_msg_free

Function ff_ipc_msg_free

tools/compat/ff_ipc.c:109–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109int
110ff_ipc_msg_free(struct ff_msg *msg)
111{
112 if (inited == 0) {
113 printf("ff ipc not inited\n");
114 return -1;
115 }
116
117 if (msg->original_buf) {
118 rte_free(msg->buf_addr);
119 msg->buf_addr = msg->original_buf;
120 msg->buf_len = msg->original_buf_len;
121 msg->original_buf = NULL;
122 }
123
124 rte_mempool_put(message_pool, msg);
125
126 return 0;
127}
128
129int
130ff_ipc_send(const struct ff_msg *msg)

Callers 8

rtioctlFunction · 0.85
sysctlFunction · 0.85
ioctl_vaFunction · 0.85
ngctlFunction · 0.85
traffic_statusFunction · 0.85
ipfw_ctlFunction · 0.85
cpu_statusFunction · 0.85
knictl_statusFunction · 0.85

Calls 3

rte_freeFunction · 0.85
rte_mempool_putFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected