---
name: "rte_vhost_stat"
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_vhost_stat"
---

# rte\_vhost\_stat(3)

## NAME

rte\_vhost\_stat

## SYNOPSIS

`#include <rte_vhost.h>`

### Data Fields

uint64\_t **id**\
 uint64\_t **value**\

## Detailed Description

Vhost virtqueue statistics structure

This structure is used by **rte\_vhost\_vring\_stats\_get()** to provide virtqueue statistics to the calling application. It maps a name ID, corresponding to an index in the array returned by **rte\_vhost\_vring\_stats\_get\_names()**, to a statistic value.

Definition at line **347** of file **rte\_vhost.h**.

## Field Documentation

### uint64\_t id

The index in xstats name array.

Definition at line **348** of file **rte\_vhost.h**.

### uint64\_t value

The statistic counter value.

Definition at line **349** of file **rte\_vhost.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
