DPDK
2.1.0
|
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | feature_entry |
Functions | |
static void | rte_cpu_get_features (uint32_t leaf, uint32_t subleaf, cpuid_registers_t out) |
static int | rte_cpu_get_flag_enabled (enum rte_cpu_flag_t feature) |
void | rte_cpu_check_supported (void) |
Variables | |
enum rte_cpu_flag_t | __RTE_CPUFLAG_UNDERLYING_TYPE |
enum cpu_register_t | __RTE_REGISTER_UNDERLYING_TYPE |
static struct feature_entry | cpu_feature_table [] |
Architecture specific API to determine available CPU features at runtime.
Definition in file rte_cpuflags.h.
|
inlinestatic |
Execute CPUID instruction and get contents of a specific register
This function, when compiled with GCC, will generate architecture-neutral code, as per GCC manual.
|
inlinestatic |
Function for checking a CPU flag availability
feature | CPU flag to query CPU for |
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.
enum rte_cpu_flag_t __RTE_CPUFLAG_UNDERLYING_TYPE |
Enumeration of all CPU features supported
Definition at line 58 of file rte_cpuflags.h.
enum cpu_register_t __RTE_REGISTER_UNDERLYING_TYPE |
Enumeration of CPU registers
Definition at line 63 of file rte_cpuflags.h.
|
static |
An array that holds feature entries
Defined in arch-specific rte_cpuflags.h.
Definition at line 89 of file rte_cpuflags.h.