diff --git a/include/spdk_internal/event.h b/include/spdk_internal/event.h index 4ce25fed0..5d4d774a9 100644 --- a/include/spdk_internal/event.h +++ b/include/spdk_internal/event.h @@ -88,6 +88,8 @@ void spdk_reactors_fini(void); void spdk_reactors_start(void); void spdk_reactors_stop(void *arg1); +struct spdk_reactor *spdk_reactor_get(uint32_t lcore); + /** * Allocate and pass an event to each reactor, serially. * diff --git a/lib/event/reactor.c b/lib/event/reactor.c index 5fc91d919..245a3934b 100644 --- a/lib/event/reactor.c +++ b/lib/event/reactor.c @@ -73,7 +73,7 @@ spdk_reactor_construct(struct spdk_reactor *reactor, uint32_t lcore) assert(reactor->events != NULL); } -static struct spdk_reactor * +struct spdk_reactor * spdk_reactor_get(uint32_t lcore) { struct spdk_reactor *reactor;