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

Function thread_msg_alloc

dpdk/examples/ip_pipeline/thread.c:216–223  ·  view source on GitHub ↗

* Main thread */

Source from the content-addressed store, hash-verified

214 * Main thread
215 */
216static struct thread_msg_req *
217thread_msg_alloc(void)
218{
219 size_t size = RTE_MAX(sizeof(struct thread_msg_req),
220 sizeof(struct thread_msg_rsp));
221
222 return calloc(1, size);
223}
224
225static void
226thread_msg_free(struct thread_msg_rsp *rsp)

Callers 2

thread_pipeline_enableFunction · 0.70
thread_pipeline_disableFunction · 0.70

Calls 1

callocFunction · 0.85

Tested by

no test coverage detected