Branch data 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 : 2020 : sock_subsystem_init(void) 12 : : { 13 : 2020 : spdk_subsystem_init_next(0); 14 : 2020 : } 15 : : 16 : : static void 17 : 2020 : sock_subsystem_fini(void) 18 : : { 19 : 2020 : spdk_subsystem_fini_next(); 20 : 2020 : } 21 : : 22 : : static void 23 : 98 : sock_subsystem_write_config_json(struct spdk_json_write_ctx *w) 24 : : { 25 : 98 : spdk_sock_write_config_json(w); 26 : 98 : } 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 : 2110 : SPDK_SUBSYSTEM_REGISTER(g_spdk_subsystem_sock);