---
name: "rte_cpu_strcmp_auxval"
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_cpuflags.h"
---

# rte\_cpu\_strcmp\_auxval(3)

Part of [rte\_cpuflags.h(3)](/rte_cpuflags.h/3.md).

## NAME

rte\_cpuflags.h

## SYNOPSIS

`#include 'rte_common.h'`\
 `#include <errno.h>`\
 `#include <rte_compat.h>`\

### Data Structures

struct **rte\_cpu\_intrinsics**\

### Functions

void **rte\_cpu\_get\_intrinsics\_support** (struct **rte\_cpu\_intrinsics** \*intrinsics)\
 \_\_extension\_\_ const char \* **rte\_cpu\_get\_flag\_name** (enum rte\_cpu\_flag\_t feature)\
 \_\_extension\_\_ int **rte\_cpu\_get\_flag\_enabled** (enum rte\_cpu\_flag\_t feature)\
 int **rte\_cpu\_is\_supported** (void)\
 unsigned long **rte\_cpu\_getauxval** (unsigned long type)\
 int **rte\_cpu\_strcmp\_auxval** (unsigned long type, const char \*str)\

## Detailed Description

Architecture specific API to determine available CPU features at runtime.

Definition in file **rte\_cpuflags.h**.

## Function Documentation

### void rte\_cpu\_get\_intrinsics\_support (struct rte\_cpu\_intrinsics \* intrinsics)

Check CPU support for various intrinsics at runtime.

**Parameters**

*intrinsics* Pointer to a structure to be filled.

### \_\_extension\_\_ const char \* rte\_cpu\_get\_flag\_name (enum rte\_cpu\_flag\_t feature)

Get name of CPU flag

**Parameters**

*feature* CPU flag ID

**Returns**

flag name NULL if flag ID is invalid

### \_\_extension\_\_ int rte\_cpu\_get\_flag\_enabled (enum rte\_cpu\_flag\_t feature)

Function for checking a CPU flag availability

**Parameters**

*feature* CPU flag to query CPU for

**Returns**

1 if flag is available 0 if flag is not available -ENOENT if flag is invalid

### int rte\_cpu\_is\_supported (void)

This function checks that the currently used CPU supports the CPU features that were specified at compile time. It is called automatically within the EAL, so does not need to be used by applications. This version returns a result so that decisions may be made (for instance, graceful shutdowns).

### unsigned long rte\_cpu\_getauxval (unsigned long type)

This function attempts to retrieve a value from the auxiliary vector. If it is unsuccessful, the result will be 0, and errno will be set.

**Returns**

A value from the auxiliary vector. When the value is 0, check errno to determine if an error occurred.

### int rte\_cpu\_strcmp\_auxval (unsigned long type, const char \* str)

This function retrieves a value from the auxiliary vector, and compares it as a string against the value retrieved.

**Returns**

The result of calling strcmp() against the value retrieved from the auxiliary vector. When the value is 0 (meaning a match is found), check errno to determine if an error occurred.

## Author

Generated automatically by Doxygen for DPDK from the source code.
