---
name: "rte_service_spec"
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_service_spec"
---

# rte\_service\_spec(3)

## NAME

rte\_service\_spec

## SYNOPSIS

`#include <rte_service_component.h>`

### Data Fields

char **name** \[RTE\_SERVICE\_NAME\_MAX\]\
 rte\_service\_func **callback**\
 void \* **callback\_userdata**\
 uint32\_t **capabilities**\
 int **socket\_id**\

## Detailed Description

The specification of a service.

This struct contains metadata about the service itself, the callback function to run one iteration of the service, a userdata pointer, flags etc.

Definition at line **35** of file **rte\_service\_component.h**.

## Field Documentation

### char name\[RTE\_SERVICE\_NAME\_MAX\]

The name of the service. This should be used by the application to understand what purpose this service provides.

Definition at line **39** of file **rte\_service\_component.h**.

### rte\_service\_func callback

The callback to invoke to run one iteration of the service.

Definition at line **41** of file **rte\_service\_component.h**.

### void\* callback\_userdata

The userdata pointer provided to the service callback.

Definition at line **43** of file **rte\_service\_component.h**.

### uint32\_t capabilities

Flags to indicate the capabilities of this service. See defines in the public header file for values of RTE\_SERVICE\_CAP\_\*

Definition at line **47** of file **rte\_service\_component.h**.

### int socket\_id

NUMA socket ID that this service is affinitized to

Definition at line **49** of file **rte\_service\_component.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
