src/dpdk/lib/librte_eal/include/rte_lcore.h
static inline unsigned
rte_lcore_id(void)
{
	return RTE_PER_LCORE(_lcore_id);
}
/**
 * Return the Application thread ID of the execution unit.
 *
 * Note: in most cases the lcore id returned here will also correspond
 *   to the processor id of the CPU on which the thread is pinned, this
 *   will not be the case if the user has explicitly changed the thread to
 *   core affinities using --lcores EAL argument e.g. --lcores '(0-3)@10'
 *   to run threads with lcore IDs 0, 1, 2 and 3 on physical core 10..
 *
 * @return
 *  Logical core ID (in EAL thread or registered non-EAL thread) or
 *  LCORE_ID_ANY (in unregistered non-EAL thread)
 */
Return the Application thread ID of the execution unit.
Note: in most cases the lcore id returned here will also correspond
to the processor id of the CPU on which the thread is pinned, this
will not be the case if the user has explicitly changed the thread to
core affinities using --lcores EAL argument e.g. --lcores '(0-3)@10'
to run threads with lcore IDs 0, 1, 2 and 3 on physical core 10

@return
Logical core ID (in EAL thread or registered non-EAL thread) or
LCORE_ID_ANY (in unregistered non-EAL thread)
Return the Application thread ID of the execution unit . Note : in most cases the lcore id returned here will also correspond to the processor id of the CPU on which the thread is pinned this will not be the case if the user has explicitly changed the thread to core affinities using -- lcores EAL argument e . g . -- lcores ' ( 0 - 3 ) @10 ' to run threads with lcore IDs 0 1 2 and 3 on physical core 10 @return Logical core ID ( in EAL thread or registered non - EAL thread ) or LCORE_ID_ANY ( in unregistered non - EAL thread )
static inline unsigned
rte_lcore_id(void)
{
	return RTE_PER_LCORE(_lcore_id);
}
static inline unsigned rte_lcore_id ( void ) { return RTE_PER_LCORE ( _lcore_id ) ; }
Return the Application thread ID of the execution unit.
Return the Application thread ID of the execution unit .