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

Function pipeline_msg_alloc

dpdk/examples/ip_pipeline/thread.c:731–738  ·  view source on GitHub ↗

* Main thread */

Source from the content-addressed store, hash-verified

729 * Main thread
730 */
731static struct pipeline_msg_req *
732pipeline_msg_alloc(void)
733{
734 size_t size = RTE_MAX(sizeof(struct pipeline_msg_req),
735 sizeof(struct pipeline_msg_rsp));
736
737 return calloc(1, size);
738}
739
740static void
741pipeline_msg_free(struct pipeline_msg_rsp *rsp)

Calls 1

callocFunction · 0.85

Tested by

no test coverage detected