---
name: "rte_mempool_ops_table"
section: "3"
platform: "linux"
package: "dpdk-doc"
version: "24.11.4-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rte_mempool_ops_table"
---

# rte\_mempool\_ops\_table(3)

## NAME

rte\_mempool\_ops\_table

## SYNOPSIS

`#include <rte_mempool.h>`

### Data Fields

**rte\_spinlock\_t** **sl**\
 uint32\_t **num\_ops**\
 struct **rte\_mempool\_ops** **ops** \[**RTE\_MEMPOOL\_MAX\_OPS\_IDX**\]\

## Detailed Description

Structure storing the table of registered ops structs, each of which contain the function pointers for the mempool ops functions. Each process has its own storage for this ops struct array so that the mempools can be shared across primary and secondary processes. The indices used to access the array are valid across processes, whereas any function pointers stored directly in the mempool struct would not be. This results in us simply having 'ops\_index' in the mempool struct.

Definition at line **730** of file **rte\_mempool.h**.

## Field Documentation

### rte\_spinlock\_t sl

Spinlock for add/delete.

Definition at line **731** of file **rte\_mempool.h**.

### uint32\_t num\_ops

Number of used ops structs in the table.

Definition at line **732** of file **rte\_mempool.h**.

### struct rte\_mempool\_ops ops\[RTE\_MEMPOOL\_MAX\_OPS\_IDX\]

Storage for all possible ops structs.

Definition at line **736** of file **rte\_mempool.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
