rte_mempool_ops(3)

๐Ÿ’– NAME ๐Ÿ’–

rte_mempool_ops โ€” okay bestie, this is the struct that holds all the operations a mempool can do. It's living in the rte_mempool_ops(3) manual page, iykyk. ๐Ÿซถ


โœจ SYNOPSIS โœจ

#include <rte_mempool.h>

๐ŸŽ€ Data Fields ๐ŸŽ€

char name [RTE_MEMPOOL_OPS_NAMESIZE]
rte_mempool_alloc_t alloc
rte_mempool_free_t free
rte_mempool_enqueue_t enqueue
rte_mempool_dequeue_t dequeue
rte_mempool_get_count get_count
rte_mempool_calc_mem_size_t calc_mem_size
rte_mempool_populate_t populate
rte_mempool_get_info_t get_info
rte_mempool_dequeue_contig_blocks_t dequeue_contig_blocks

๐ŸŒธ Detailed Description ๐ŸŒธ

It's literally the structure defining the mempool operations structure. That's the whole vibe. ๐Ÿ™ˆ

Definition at line 692 of file rte_mempool.h.

๐Ÿ’… Field Documentation ๐Ÿ’…

๐Ÿฆ‹ char name[RTE_MEMPOOL_OPS_NAMESIZE] ๐Ÿฆ‹

Name of mempool ops struct.</purl> โ€” yes, the struct has a name and it's serving. ๐Ÿ‘‘

Definition at line 693 of file rte_mempool.h.

๐Ÿฆ‹ rte_mempool_alloc_t alloc ๐Ÿฆ‹

Allocate private data. Gotta get that memory, no cap. โœจ

Definition at line 694 of file rte_mempool.h.

๐Ÿฆ‹ rte_mempool_free_t free ๐Ÿฆ‹

Free the external pool. Release it back to the wild, bestie. ๐Ÿฆ‹

Definition at line 695 of file rte_mempool.h.

๐Ÿฆ‹ rte_mempool_enqueue_t enqueue ๐Ÿฆ‹

Enqueue an object. Pop it in the queue, main character entering the chat. ๐Ÿ’…

Definition at line 696 of file rte_mempool.h.

๐Ÿฆ‹ rte_mempool_dequeue_t dequeue ๐Ÿฆ‹

Dequeue an object. Taking one out, iconic behavior. ๐ŸŽ€

Definition at line 697 of file rte_mempool.h.

๐Ÿฆ‹ rte_mempool_get_count_t get_count ๐Ÿฆ‹

Get qty of available objs. โ€” like, how many do we even have left, fr fr. ๐Ÿ”ข

Definition at line 698 of file rte_mempool.h.

๐Ÿฆ‹ rte_mempool_calc_mem_size_t calc_mem_size ๐Ÿฆ‹

Optional callback to calculate the memory size required to store the specified number of objects. Math girl summer, she's crunching the numbers so you don't have to. ๐Ÿงฎโœจ

Definition at line 703 of file rte_mempool.h.

๐Ÿฆ‹ rte_mempool_populate_t populate ๐Ÿฆ‹

Optional callback to populate mempool objects using the provided memory chunk. Fill 'er up with the chunk you were given, periodt. ๐Ÿ“

Definition at line 708 of file rte_mempool.h.

๐Ÿฆ‹ rte_mempool_get_info_t get_info ๐Ÿฆ‹

Get mempool info. Tell me everything, bestie, I'm obsessed. ๐Ÿ’–

Definition at line 712 of file rte_mempool.h.

๐Ÿฆ‹ rte_mempool_dequeue_contig_blocks_t dequeue_contig_blocks ๐Ÿฆ‹

Dequeue a number of contiguous object blocks. Not just one โ€” a whole little squad, sitting right next to each other. ๐Ÿ‘ฏ๐Ÿ”ฅ

Definition at line 716 of file rte_mempool.h.

๐Ÿ‘‘ Author ๐Ÿ‘‘

Generated automatically by Doxygen for DPDK from the source code. Not me writing it by hand, the robot did it, and honestly? Ate. ๐Ÿ’€


That's the whole page, cupcake! This was DPDK, Version 25.11.3, and the page you just read is rte_mempool_ops(3). Go forth and slay your mempool, bestie. ๐ŸŒˆ๐Ÿ’œ๐Ÿงš

๐Ÿ“ฆ where this page comes from