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

Function rte_mempool_get_trailer

dpdk/lib/mempool/rte_mempool.h:389–393  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

387
388/* return the trailer of a mempool object (internal) */
389static inline struct rte_mempool_objtlr *rte_mempool_get_trailer(void *obj)
390{
391 struct rte_mempool *mp = rte_mempool_from_obj(obj);
392 return (struct rte_mempool_objtlr *)RTE_PTR_ADD(obj, mp->elt_size);
393}
394
395/**
396 * @internal Check and update cookies or panic.

Callers 2

mempool_add_elemFunction · 0.85

Calls 1

rte_mempool_from_objFunction · 0.85

Tested by

no test coverage detected