LCOV - code coverage report
Current view: top level - module/event/subsystems/vhost_scsi - vhost_scsi.c (source / functions) Hit Total Coverage
Test: ut_cov_unit.info Lines: 0 14 0.0 %
Date: 2024-07-12 06:32:12 Functions: 0 6 0.0 %

          Line data    Source code
       1             : /*   SPDX-License-Identifier: BSD-3-Clause
       2             :  *   Copyright (C) 2021 Intel Corporation.
       3             :  *   All rights reserved.
       4             :  */
       5             : 
       6             : #include "spdk/stdinc.h"
       7             : 
       8             : #include "spdk/vhost.h"
       9             : 
      10             : #include "spdk_internal/init.h"
      11             : 
      12             : static void
      13           0 : vhost_scsi_subsystem_init_done(int rc)
      14             : {
      15           0 :         spdk_subsystem_init_next(rc);
      16           0 : }
      17             : 
      18             : static void
      19           0 : vhost_scsi_subsystem_init(void)
      20             : {
      21           0 :         spdk_vhost_scsi_init(vhost_scsi_subsystem_init_done);
      22           0 : }
      23             : 
      24             : static void
      25           0 : vhost_scsi_subsystem_fini_done(void)
      26             : {
      27           0 :         spdk_subsystem_fini_next();
      28           0 : }
      29             : 
      30             : static void
      31           0 : vhost_scsi_subsystem_fini(void)
      32             : {
      33           0 :         spdk_vhost_scsi_fini(vhost_scsi_subsystem_fini_done);
      34           0 : }
      35             : 
      36             : static struct spdk_subsystem g_spdk_subsystem_vhost_scsi = {
      37             :         .name = "vhost_scsi",
      38             :         .init = vhost_scsi_subsystem_init,
      39             :         .fini = vhost_scsi_subsystem_fini,
      40             :         .write_config_json = spdk_vhost_scsi_config_json,
      41             : };
      42             : 
      43           0 : SPDK_SUBSYSTEM_REGISTER(g_spdk_subsystem_vhost_scsi);
      44           0 : SPDK_SUBSYSTEM_DEPEND(vhost_scsi, scsi)

Generated by: LCOV version 1.15