|
DPDK
1.6.0r2
|
#include <rte_per_lcore.h>#include <rte_eal.h>#include <rte_launch.h>#include <exec-env/rte_lcore.h>Macros | |
| #define | LCORE_ID_ANY -1 |
| #define | RTE_LCORE_FOREACH(i) |
| #define | RTE_LCORE_FOREACH_SLAVE(i) |
Functions | |
| RTE_DECLARE_PER_LCORE (unsigned, _lcore_id) | |
| static unsigned | rte_lcore_id (void) |
| static unsigned | rte_get_master_lcore (void) |
| static unsigned | rte_lcore_count (void) |
| static unsigned | rte_socket_id (void) |
| static unsigned | rte_lcore_to_socket_id (unsigned lcore_id) |
| static int | rte_lcore_is_enabled (unsigned lcore_id) |
| static unsigned | rte_get_next_lcore (unsigned i, int skip_master, int wrap) |
API for lcore and Socket Manipulation. Parts of this are execution environment specific.
| #define LCORE_ID_ANY -1 |
Any lcore.
| #define RTE_LCORE_FOREACH | ( | i | ) |
Macro to browse all running lcores.
| #define RTE_LCORE_FOREACH_SLAVE | ( | i | ) |
Macro to browse all running lcores except the master lcore.
| RTE_DECLARE_PER_LCORE | ( | unsigned | , |
| _lcore_id | |||
| ) |
Per core "core id".
|
inlinestatic |
Get the id of the master lcore
|
inlinestatic |
Get the next enabled lcore ID.
| i | The current lcore (reference). |
| skip_master | If true, do not return the ID of the master lcore. |
| wrap | If true, go back to 0 when RTE_MAX_LCORE is reached; otherwise, return RTE_MAX_LCORE. |
|
inlinestatic |
Return the number of execution units (lcores) on the system.
|
inlinestatic |
Return the ID of the execution unit we are running on.
|
inlinestatic |
Test if an lcore is enabled.
| lcore_id | The identifier of the lcore, which MUST be between 0 and RTE_MAX_LCORE-1. |
|
inlinestatic |
Get the ID of the physical socket of the specified lcore
| lcore_id | the targeted lcore, which MUST be between 0 and RTE_MAX_LCORE-1. |
|
inlinestatic |
Return the ID of the physical socket of the logical core we are running on.
1.8.1.2