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

Function rte_mempool_get_header

dpdk/lib/mempool/rte_mempool.h:366–371  ·  view source on GitHub ↗

return the header of a mempool object (internal) */

Source from the content-addressed store, hash-verified

364
365/* return the header of a mempool object (internal) */
366static inline struct rte_mempool_objhdr *
367rte_mempool_get_header(void *obj)
368{
369 return (struct rte_mempool_objhdr *)RTE_PTR_SUB(obj,
370 sizeof(struct rte_mempool_objhdr));
371}
372
373/**
374 * Return a pointer to the mempool owning this object.

Callers 5

rte_mempool_from_objFunction · 0.85
cn10k_hwpool_enqFunction · 0.85
cn10k_hwpool_deqFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected