Line data Source code
1 : /* SPDX-License-Identifier: BSD-3-Clause 2 : * Copyright (C) 2021 Intel Corporation. 3 : * Copyright (c) 2020 Mellanox Technologies LTD. All rights reserved. 4 : */ 5 : 6 : #include "spdk/stdinc.h" 7 : #include "spdk/sock.h" 8 : #include "spdk_internal/init.h" 9 : 10 : static void 11 0 : sock_subsystem_init(void) 12 : { 13 0 : spdk_subsystem_init_next(0); 14 0 : } 15 : 16 : static void 17 0 : sock_subsystem_fini(void) 18 : { 19 0 : spdk_subsystem_fini_next(); 20 0 : } 21 : 22 : static void 23 0 : sock_subsystem_write_config_json(struct spdk_json_write_ctx *w) 24 : { 25 0 : spdk_sock_write_config_json(w); 26 0 : } 27 : 28 : static struct spdk_subsystem g_spdk_subsystem_sock = { 29 : .name = "sock", 30 : .init = sock_subsystem_init, 31 : .fini = sock_subsystem_fini, 32 : .write_config_json = sock_subsystem_write_config_json, 33 : }; 34 : 35 0 : SPDK_SUBSYSTEM_REGISTER(g_spdk_subsystem_sock);