2022-06-03 19:15:11 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
2022-11-01 20:26:26 +00:00
|
|
|
* Copyright (C) 2021 Intel Corporation.
|
2020-01-28 20:47:04 +00:00
|
|
|
* Copyright (c) 2020 Mellanox Technologies LTD. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "spdk/stdinc.h"
|
|
|
|
#include "spdk/sock.h"
|
2021-02-26 22:00:03 +00:00
|
|
|
#include "spdk_internal/init.h"
|
2020-01-28 20:47:04 +00:00
|
|
|
|
|
|
|
static void
|
|
|
|
sock_subsystem_init(void)
|
|
|
|
{
|
|
|
|
spdk_subsystem_init_next(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
sock_subsystem_fini(void)
|
|
|
|
{
|
|
|
|
spdk_subsystem_fini_next();
|
|
|
|
}
|
|
|
|
|
2020-01-28 22:18:16 +00:00
|
|
|
static void
|
|
|
|
sock_subsystem_write_config_json(struct spdk_json_write_ctx *w)
|
|
|
|
{
|
|
|
|
spdk_sock_write_config_json(w);
|
|
|
|
}
|
|
|
|
|
2020-01-28 20:47:04 +00:00
|
|
|
static struct spdk_subsystem g_spdk_subsystem_sock = {
|
|
|
|
.name = "sock",
|
|
|
|
.init = sock_subsystem_init,
|
|
|
|
.fini = sock_subsystem_fini,
|
2020-01-28 22:18:16 +00:00
|
|
|
.write_config_json = sock_subsystem_write_config_json,
|
2020-01-28 20:47:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
SPDK_SUBSYSTEM_REGISTER(g_spdk_subsystem_sock);
|