module/event_nbd: add a map file and remove spdk prefix.

Signed-off-by: Seth Howell <seth.howell@intel.com>
Change-Id: Id2920389b7cf762cf80006da5dbe582dfdc81438
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2350
Community-CI: Mellanox Build Bot
Community-CI: Broadcom CI
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Seth Howell 2020-05-10 12:21:13 -07:00 committed by Tomasz Zawadzki
parent e503deb1d2
commit 5c0b8f39a8
2 changed files with 8 additions and 6 deletions

View File

@ -41,4 +41,6 @@ SO_SUFFIX := $(SO_VER).$(SO_MINOR)
C_SRCS = nbd.c
LIBNAME = event_nbd
SPDK_MAP_FILE = $(SPDK_ROOT_DIR)/mk/spdk_blank.map
include $(SPDK_ROOT_DIR)/mk/spdk.lib.mk

View File

@ -38,7 +38,7 @@
#include "spdk_internal/event.h"
static void
spdk_nbd_subsystem_init(void)
nbd_subsystem_init(void)
{
int rc;
@ -48,24 +48,24 @@ spdk_nbd_subsystem_init(void)
}
static void
spdk_nbd_subsystem_fini(void)
nbd_subsystem_fini(void)
{
spdk_nbd_fini();
spdk_subsystem_fini_next();
}
static void
spdk_nbd_subsystem_write_config_json(struct spdk_json_write_ctx *w)
nbd_subsystem_write_config_json(struct spdk_json_write_ctx *w)
{
spdk_nbd_write_config_json(w);
}
static struct spdk_subsystem g_spdk_subsystem_nbd = {
.name = "nbd",
.init = spdk_nbd_subsystem_init,
.fini = spdk_nbd_subsystem_fini,
.init = nbd_subsystem_init,
.fini = nbd_subsystem_fini,
.config = NULL,
.write_config_json = spdk_nbd_subsystem_write_config_json,
.write_config_json = nbd_subsystem_write_config_json,
};
SPDK_SUBSYSTEM_REGISTER(g_spdk_subsystem_nbd);