---
name: "rte_mcfg_mempool_read_unlock"
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_eal_memconfig.h"
---

# rte\_mcfg\_mempool\_read\_unlock(3)

Part of [rte\_eal\_memconfig.h(3)](/rte_eal_memconfig.h/3.md).

## NAME

rte\_eal\_memconfig.h

## SYNOPSIS

`#include <stdbool.h>`\
 `#include <rte_rwlock.h>`\
 `#include <rte_spinlock.h>`\

### Functions

\_\_rte\_internal rte\_rwlock\_t \* **rte\_mcfg\_mem\_get\_lock** (void)\
 void **rte\_mcfg\_mem\_read\_lock** (void)\
 void **rte\_mcfg\_mem\_read\_unlock** (void)\
 void **rte\_mcfg\_mem\_write\_lock** (void)\
 void **rte\_mcfg\_mem\_write\_unlock** (void)\
 void **rte\_mcfg\_tailq\_read\_lock** (void)\
 void **rte\_mcfg\_tailq\_read\_unlock** (void)\
 void **rte\_mcfg\_tailq\_write\_lock** (void)\
 void **rte\_mcfg\_tailq\_write\_unlock** (void)\
 void **rte\_mcfg\_mempool\_read\_lock** (void)\
 void **rte\_mcfg\_mempool\_read\_unlock** (void)\
 void **rte\_mcfg\_mempool\_write\_lock** (void)\
 void **rte\_mcfg\_mempool\_write\_unlock** (void)\
 void **rte\_mcfg\_timer\_lock** (void)\
 void **rte\_mcfg\_timer\_unlock** (void)\
 bool **rte\_mcfg\_get\_single\_file\_segments** (void)\

## Detailed Description

This API allows access to EAL shared memory configuration through an API.

Definition in file **rte\_eal\_memconfig.h**.

## Function Documentation

### \_\_rte\_internal rte\_rwlock\_t \* rte\_mcfg\_mem\_get\_lock (void)

Internal helpers used for lock annotations.

### void rte\_mcfg\_mem\_read\_lock (void)

Lock the internal EAL shared memory configuration for shared access.

### void rte\_mcfg\_mem\_read\_unlock (void)

Unlock the internal EAL shared memory configuration for shared access.

### void rte\_mcfg\_mem\_write\_lock (void)

Lock the internal EAL shared memory configuration for exclusive access.

### void rte\_mcfg\_mem\_write\_unlock (void)

Unlock the internal EAL shared memory configuration for exclusive access.

### void rte\_mcfg\_tailq\_read\_lock (void)

Lock the internal EAL TAILQ list for shared access.

### void rte\_mcfg\_tailq\_read\_unlock (void)

Unlock the internal EAL TAILQ list for shared access.

### void rte\_mcfg\_tailq\_write\_lock (void)

Lock the internal EAL TAILQ list for exclusive access.

### void rte\_mcfg\_tailq\_write\_unlock (void)

Unlock the internal EAL TAILQ list for exclusive access.

### void rte\_mcfg\_mempool\_read\_lock (void)

Lock the internal EAL Mempool list for shared access.

### void rte\_mcfg\_mempool\_read\_unlock (void)

Unlock the internal EAL Mempool list for shared access.

### void rte\_mcfg\_mempool\_write\_lock (void)

Lock the internal EAL Mempool list for exclusive access.

### void rte\_mcfg\_mempool\_write\_unlock (void)

Unlock the internal EAL Mempool list for exclusive access.

### void rte\_mcfg\_timer\_lock (void)

Lock the internal EAL Timer Library lock for exclusive access.

### void rte\_mcfg\_timer\_unlock (void)

Unlock the internal EAL Timer Library lock for exclusive access.

### bool rte\_mcfg\_get\_single\_file\_segments (void)

If true, pages are put in single files (per memseg list), as opposed to creating a file per page.

## Author

Generated automatically by Doxygen for DPDK from the source code.
