eal: simplify meson build of common directory
[dpdk.git] / lib / librte_eal / common / include / rte_lcore.h
index 3e415ed..476b8ef 100644 (file)
@@ -25,6 +25,16 @@ extern "C" {
 RTE_DECLARE_PER_LCORE(unsigned, _lcore_id);  /**< Per thread "lcore id". */
 RTE_DECLARE_PER_LCORE(rte_cpuset_t, _cpuset); /**< Per thread "cpuset". */
 
+/**
+ * Get a lcore's role.
+ *
+ * @param lcore_id
+ *   The identifier of the lcore, which MUST be between 0 and RTE_MAX_LCORE-1.
+ * @return
+ *   The role of the lcore.
+ */
+enum rte_lcore_role_t rte_eal_lcore_role(unsigned int lcore_id);
+
 /**
  * Return the Application thread ID of the execution unit.
  *