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 <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I18c260bb10bdf1c7aa5e00aa81a171f2ff50c7d5
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478026
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Shuhei Matsumoto 2019-12-16 02:41:52 -05:00 committed by Tomasz Zawadzki
parent 653dbcb185
commit abbd6ed864
2 changed files with 3 additions and 1 deletions

View File

@ -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.
*

View File

@ -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;