logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Author

       Generated automatically by Doxygen for DPDK from the source code.

DPDK                                             Version 24.11.2                               rte_cpuflags.h(3)

Detailed Description

       Architecture specific API to determine available CPU features at runtime.

       Definition in file rte_cpuflags.h.

Function Documentation

voidrte_cpu_get_intrinsics_support(structrte_cpu_intrinsics*intrinsics)
       Check CPU support for various intrinsics at runtime.

       Parametersintrinsics Pointer to a structure to be filled.

   __extension__constchar*rte_cpu_get_flag_name(enumrte_cpu_flag_tfeature)
       Get name of CPU flag

       Parametersfeature CPU flag ID

       Returns
           flag name NULL if flag ID is invalid

   __extension__intrte_cpu_get_flag_enabled(enumrte_cpu_flag_tfeature)
       Function for checking a CPU flag availability

       Parametersfeature CPU flag to query CPU for

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

   intrte_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).

   unsignedlongrte_cpu_getauxval(unsignedlongtype)
       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.

   intrte_cpu_strcmp_auxval(unsignedlongtype,constchar*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.

Name

       rte_cpuflags.h

Synopsis

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

   DataStructures
       struct rte_cpu_intrinsicsFunctions
       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)

See Also