rte_dpaa2_mempool.h(3)
π rte_dpaa2_mempool.h β Library Functions Manual π
okay bestie, pull up a chair because we're getting into rte_dpaa2_mempool.h, a header from the DPDK library functions manual. it's NXP-specific mempool stuff, and honestly? it's giving "short but important" energy. three functions, all iconic, all here. let's go π¦
β¨ NAME β¨
rte_dpaa2_mempool.h β like, that's the whole name, no notes, periodt π
πΈ SYNOPSIS πΈ
first things first, you gotta bring in the girlies:
#include <rte_compat.h>
#include <rte_mempool.h>
π Functions
uint16_t rte_dpaa2_mbuf_pool_bpid (struct rte_mempool *mp)
struct rte_mbuf * rte_dpaa2_mbuf_from_buf_addr (struct rte_mempool *mp,
void *buf_addr)
__rte_internal int rte_dpaa2_bpid_info_init (struct rte_mempool *mp)
π§ Detailed Description π§
these are the NXP specific mempool related functions. that's the vibe. that's the whole vibe check. β¨
oh and fun fact: this is all defined in the file rte_dpaa2_mempool.h. icon behavior, keeping it in the family π«Ά
π Function Documentation π
β uint16_t rte_dpaa2_mbuf_pool_bpid (struct rte_mempool * mp)
gets the BPID that corresponds to the packet pool. lowkey the whole point of this one.
Parameters
mpβ the memory pool, bestie
Returns
- the BPID of the buffer pool π
π¦ struct rte_mbuf * rte_dpaa2_mbuf_from_buf_addr (struct rte_mempool * mp, void * buf_addr)
gets you the MBUF from the corresponding buf_addr. it's the glow-up from raw address to full mbuf β¨
Parameters
mpβ the memory poolbuf_addrβ thebuf_addrof the mbuf. no wait, let me say it properly: this is the start buffer address of the packet buffer (mbuf). yeah. that one. π
Returns
- MBUF pointer for success π₯³
NULLin case of error π
π __rte_internal int rte_dpaa2_bpid_info_init (struct rte_mempool * mp)
initializes the rte_dpaa2_bpid_info. in generial β yes, generial, that's what the page says, i'm not fixing it, i'm just reporting β it's called in the secondary process and mp has already been created in the primary process. so like, the primary did the creating, the secondary does the calling. teamwork, fr fr π€
Parameters
mpβ the memory pool
Returns
0on success π- (
<0) on failure π
heads up bestie: this function is marked __rte_internal, so it's not out here for just anybody β it's an internal-use situation, iykyk π₯
π Author π
generated automatically by Doxygen for DPDK from the source code. not me writing this by hand, it's literally the machine doing its thing. slay, honestly.
and that's the whole page, no cap. this was DPDK, Version 25.11.3, serving rte_dpaa2_mempool.h in the (3) section of the library functions manual. mwah, bye bestie π
ππ
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms