]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/eal_private.h
eal: introduce thread init helper
[dpdk.git] / lib / librte_eal / common / eal_private.h
index 46bcae9305905b76c953ce1ebd8d20d759c347c3..5d8b53882d685a4bcafab9bde19220fe4a65642a 100644 (file)
@@ -699,4 +699,14 @@ eal_get_internal_configuration(void);
 rte_usage_hook_t
 eal_get_application_usage_hook(void);
 
+/**
+ * Init per-lcore info in current thread.
+ *
+ * @param lcore_id
+ *   identifier of lcore.
+ * @param cpuset
+ *   CPU affinity for this thread.
+ */
+void __rte_thread_init(unsigned int lcore_id, rte_cpuset_t *cpuset);
+
 #endif /* _EAL_PRIVATE_H_ */