module/event_vmd: add a map file and remove spdk prefix.
Signed-off-by: Seth Howell <seth.howell@intel.com> Change-Id: Ie7c85eb24f75592a79d09c5bbd07f6d11c9a6abd Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2355 Community-CI: Mellanox Build Bot Community-CI: Broadcom CI Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
650ced4c39
commit
5ad576336a
@ -41,4 +41,6 @@ SO_SUFFIX := $(SO_VER).$(SO_MINOR)
|
|||||||
C_SRCS = vmd.c vmd_rpc.c
|
C_SRCS = vmd.c vmd_rpc.c
|
||||||
LIBNAME = event_vmd
|
LIBNAME = event_vmd
|
||||||
|
|
||||||
|
SPDK_MAP_FILE = $(SPDK_ROOT_DIR)/mk/spdk_blank.map
|
||||||
|
|
||||||
include $(SPDK_ROOT_DIR)/mk/spdk.lib.mk
|
include $(SPDK_ROOT_DIR)/mk/spdk.lib.mk
|
||||||
|
@ -80,7 +80,7 @@ vmd_subsystem_init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
spdk_vmd_subsystem_init(void)
|
_vmd_subsystem_init(void)
|
||||||
{
|
{
|
||||||
struct spdk_conf_section *sp;
|
struct spdk_conf_section *sp;
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
@ -96,7 +96,7 @@ spdk_vmd_subsystem_init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
spdk_vmd_subsystem_fini(void)
|
vmd_subsystem_fini(void)
|
||||||
{
|
{
|
||||||
spdk_poller_unregister(&g_hotplug_poller);
|
spdk_poller_unregister(&g_hotplug_poller);
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ spdk_vmd_subsystem_fini(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
spdk_vmd_write_config_json(struct spdk_json_write_ctx *w)
|
vmd_write_config_json(struct spdk_json_write_ctx *w)
|
||||||
{
|
{
|
||||||
spdk_json_write_array_begin(w);
|
spdk_json_write_array_begin(w);
|
||||||
|
|
||||||
@ -123,10 +123,10 @@ spdk_vmd_write_config_json(struct spdk_json_write_ctx *w)
|
|||||||
|
|
||||||
static struct spdk_subsystem g_spdk_subsystem_vmd = {
|
static struct spdk_subsystem g_spdk_subsystem_vmd = {
|
||||||
.name = "vmd",
|
.name = "vmd",
|
||||||
.init = spdk_vmd_subsystem_init,
|
.init = _vmd_subsystem_init,
|
||||||
.fini = spdk_vmd_subsystem_fini,
|
.fini = vmd_subsystem_fini,
|
||||||
.config = NULL,
|
.config = NULL,
|
||||||
.write_config_json = spdk_vmd_write_config_json,
|
.write_config_json = vmd_write_config_json,
|
||||||
};
|
};
|
||||||
|
|
||||||
SPDK_SUBSYSTEM_REGISTER(g_spdk_subsystem_vmd);
|
SPDK_SUBSYSTEM_REGISTER(g_spdk_subsystem_vmd);
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
#include "event_vmd.h"
|
#include "event_vmd.h"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
spdk_rpc_vmd_enable(struct spdk_jsonrpc_request *request, const struct spdk_json_val *params)
|
rpc_vmd_enable(struct spdk_jsonrpc_request *request, const struct spdk_json_val *params)
|
||||||
{
|
{
|
||||||
struct spdk_json_write_ctx *w;
|
struct spdk_json_write_ctx *w;
|
||||||
int rc;
|
int rc;
|
||||||
@ -52,4 +52,4 @@ spdk_rpc_vmd_enable(struct spdk_jsonrpc_request *request, const struct spdk_json
|
|||||||
spdk_jsonrpc_end_result(request, w);
|
spdk_jsonrpc_end_result(request, w);
|
||||||
}
|
}
|
||||||
|
|
||||||
SPDK_RPC_REGISTER("enable_vmd", spdk_rpc_vmd_enable, SPDK_RPC_STARTUP)
|
SPDK_RPC_REGISTER("enable_vmd", rpc_vmd_enable, SPDK_RPC_STARTUP)
|
||||||
|
Loading…
Reference in New Issue
Block a user