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

Function rte_mempool_from_obj

dpdk/lib/mempool/rte_mempool.h:382–386  ·  view source on GitHub ↗

* Return a pointer to the mempool owning this object. * * @param obj * An object that is owned by a pool. If this is not the case, * the behavior is undefined. * @return * A pointer to the mempool structure. */

Source from the content-addressed store, hash-verified

380 * A pointer to the mempool structure.
381 */
382static inline struct rte_mempool *rte_mempool_from_obj(void *obj)
383{
384 struct rte_mempool_objhdr *hdr = rte_mempool_get_header(obj);
385 return hdr->mp;
386}
387
388/* return the trailer of a mempool object (internal) */
389static inline struct rte_mempool_objtlr *rte_mempool_get_trailer(void *obj)

Callers 15

rte_mempool_get_trailerFunction · 0.85
txa_process_event_vectorFunction · 0.85
scheduler_session_createFunction · 0.85
eth_sg_fd_to_mbufFunction · 0.85
eth_fd_to_mbufFunction · 0.85
eth_mbuf_to_sg_fdFunction · 0.85
eth_copy_mbuf_to_fdFunction · 0.85
dpaa2_dev_txFunction · 0.85

Calls 1

rte_mempool_get_headerFunction · 0.85

Tested by 4