CNDP
22.08.0
|
Go to the source code of this file.
Functions | |
CNDP_API unsigned | cne_core_id (unsigned lcore_id) |
CNDP_API unsigned int | cne_max_lcores (void) |
CNDP_API int | cne_max_numa_nodes (void) |
CNDP_API int | cne_lcore_id (void) |
CNDP_API int | cne_lcore_id_by_thread (int thread_idx) |
CNDP_API unsigned int | cne_socket_id (unsigned lcore_id) |
CNDP_API unsigned int | cne_socket_id_self (void) |
CNDP_API uint16_t | cne_device_socket_id (char *netdev) |
CNDP_API unsigned int | cne_socket_count (void) |
CNDP_API uint64_t | cne_get_timer_hz (void) |
API for lcore and socket manipulation
Definition in file cne_system.h.
CNDP_API unsigned cne_core_id | ( | unsigned | lcore_id | ) |
Get cpu core_id base in lcore ID value from /sys/.../cpuX path.
This function is private to the CNE.
lcore_id | The lcore ID value to location. |
CNDP_API unsigned int cne_max_lcores | ( | void | ) |
Return the number of execution units (lcores) on the system.
CNDP_API int cne_max_numa_nodes | ( | void | ) |
Return the number of NUMA zones.
CNDP_API int cne_lcore_id | ( | void | ) |
Return the lcore ID of the current running thread.
CNDP_API int cne_lcore_id_by_thread | ( | int | thread_idx | ) |
Return the lcore ID of the given thread id.
thread_idx | Thread id to get find the lcore id |
CNDP_API unsigned int cne_socket_id | ( | unsigned | lcore_id | ) |
Return the ID of the physical socket of the logical core we are running on.
lcore_id | The lcore ID value to use to return the socket ID. |
CNDP_API unsigned int cne_socket_id_self | ( | void | ) |
Return the socket id for the current lcore
CNDP_API uint16_t cne_device_socket_id | ( | char * | netdev | ) |
Return the socket id for the given netdev name
netdev | The netdev name string. |
CNDP_API unsigned int cne_socket_count | ( | void | ) |
Return number of physical sockets detected on the system.
Note that number of nodes may not be correspondent to their physical id's: for example, a system may report two socket id's, but the actual socket id's may be 0 and 8.
CNDP_API uint64_t cne_get_timer_hz | ( | void | ) |
Get the measured frequency of the RDTSC counter