|
DPDK
1.6.0r2
|
#include <exec-env/rte_per_lcore.h>Macros | |
| #define | RTE_DEFINE_PER_LCORE(type, name) |
| #define | RTE_DECLARE_PER_LCORE(type, name) |
| #define | RTE_PER_LCORE(name) |
Per-lcore variables in RTE
This file defines an API for instantiating per-lcore "global variables" that are environment-specific. Note that in all environments, a "shared variable" is the default when you use a global variable.
Parts of this are execution environment specific.
| #define RTE_DECLARE_PER_LCORE | ( | type, | |
| name | |||
| ) |
Macro to declare an extern per lcore variable "var" of type "type"
| #define RTE_DEFINE_PER_LCORE | ( | type, | |
| name | |||
| ) |
Macro to define a per lcore variable "var" of type "type", don't use keywords like "static" or "volatile" in type, just prefix the whole macro.
| #define RTE_PER_LCORE | ( | name | ) |
Read/write the per-lcore variable value
1.8.1.2