DPDK  17.02.1
rte_cpuflags.h File Reference
#include <errno.h>

Go to the source code of this file.


__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)
void rte_cpu_check_supported (void)

Detailed Description

Architecture specific API to determine available CPU features at runtime.

Definition in file rte_cpuflags.h.

Function Documentation

__extension__ const char* rte_cpu_get_flag_name ( enum rte_cpu_flag_t  feature)

Get name of CPU flag

featureCPU flag ID
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

featureCPU flag to query CPU for
1 if flag is available 0 if flag is not available -ENOENT if flag is invalid
void rte_cpu_check_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.