Branch data Line data Source code
1 : : /* SPDX-License-Identifier: BSD-3-Clause 2 : : * Copyright (C) 2016 Intel Corporation. 3 : : * All rights reserved. 4 : : */ 5 : : 6 : : #include "spdk/stdinc.h" 7 : : 8 : : #include "spdk/scsi.h" 9 : : 10 : : #include "spdk_internal/init.h" 11 : : 12 : : static void 13 : 653 : scsi_subsystem_init(void) 14 : : { 15 : : int rc; 16 : : 17 : 653 : rc = spdk_scsi_init(); 18 : : 19 : 653 : spdk_subsystem_init_next(rc); 20 : 653 : } 21 : : 22 : : static void 23 : 653 : scsi_subsystem_fini(void) 24 : : { 25 : 653 : spdk_scsi_fini(); 26 : 653 : spdk_subsystem_fini_next(); 27 : 653 : } 28 : : 29 : : static struct spdk_subsystem g_spdk_subsystem_scsi = { 30 : : .name = "scsi", 31 : : .init = scsi_subsystem_init, 32 : : .fini = scsi_subsystem_fini, 33 : : }; 34 : : 35 : 735 : SPDK_SUBSYSTEM_REGISTER(g_spdk_subsystem_scsi); 36 : 735 : SPDK_SUBSYSTEM_DEPEND(scsi, bdev)