From abbd6ed86498f54d8c430dae769bb8ceea563c83 Mon Sep 17 00:00:00 2001 From: Shuhei Matsumoto Date: Mon, 16 Dec 2019 02:41:52 -0500 Subject: [PATCH] lib/event: Make spdk_reactor_get public in SPDK internal Following the last patch, this is also a preparation to add reactor_get_stats RPC. Signed-off-by: Shuhei Matsumoto Change-Id: I18c260bb10bdf1c7aa5e00aa81a171f2ff50c7d5 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478026 Tested-by: SPDK CI Jenkins Community-CI: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Ben Walker --- include/spdk_internal/event.h | 2 ++ lib/event/reactor.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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;