Loading include/spdk/event.h +5 −0 Original line number Diff line number Diff line Loading @@ -198,6 +198,11 @@ uint64_t spdk_app_get_core_mask(void); */ int spdk_app_get_core_count(void); /** * \brief Return the lcore of the current thread. */ uint32_t spdk_app_get_current_core(void); /** * \brief Allocate an event to be passed to \ref spdk_event_call */ Loading lib/event/reactor.c +6 −0 Original line number Diff line number Diff line Loading @@ -361,6 +361,12 @@ spdk_app_get_core_count(void) return g_reactor_count; } uint32_t spdk_app_get_current_core(void) { return rte_lcore_id(); } int spdk_app_parse_core_mask(const char *mask, uint64_t *cpumask) { Loading Loading
include/spdk/event.h +5 −0 Original line number Diff line number Diff line Loading @@ -198,6 +198,11 @@ uint64_t spdk_app_get_core_mask(void); */ int spdk_app_get_core_count(void); /** * \brief Return the lcore of the current thread. */ uint32_t spdk_app_get_current_core(void); /** * \brief Allocate an event to be passed to \ref spdk_event_call */ Loading
lib/event/reactor.c +6 −0 Original line number Diff line number Diff line Loading @@ -361,6 +361,12 @@ spdk_app_get_core_count(void) return g_reactor_count; } uint32_t spdk_app_get_current_core(void) { return rte_lcore_id(); } int spdk_app_parse_core_mask(const char *mask, uint64_t *cpumask) { Loading