---
name: "rte_malloc_socket_stats"
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_malloc_socket_stats"
---

# rte\_malloc\_socket\_stats(3)

## NAME

rte\_malloc\_socket\_stats

## SYNOPSIS

`#include <rte_malloc.h>`

### Data Fields

size\_t **heap\_totalsz\_bytes**\
 size\_t **heap\_freesz\_bytes**\
 size\_t **greatest\_free\_size**\
 unsigned **free\_count**\
 unsigned **alloc\_count**\
 size\_t **heap\_allocsz\_bytes**\

## Detailed Description

Structure to hold heap statistics obtained from rte\_malloc\_get\_socket\_stats function.

Definition at line **25** of file **rte\_malloc.h**.

## Field Documentation

### size\_t heap\_totalsz\_bytes

Total bytes on heap

Definition at line **26** of file **rte\_malloc.h**.

### size\_t heap\_freesz\_bytes

Total free bytes on heap

Definition at line **27** of file **rte\_malloc.h**.

### size\_t greatest\_free\_size

Size in bytes of largest free block

Definition at line **28** of file **rte\_malloc.h**.

### unsigned free\_count

Number of free elements on heap

Definition at line **29** of file **rte\_malloc.h**.

### unsigned alloc\_count

Number of allocated elements on heap

Definition at line **30** of file **rte\_malloc.h**.

### size\_t heap\_allocsz\_bytes

Total allocated bytes on heap

Definition at line **31** of file **rte\_malloc.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
