LCOV - code coverage report
Current view: top level - spdk/module/event/subsystems/scsi - scsi.c (source / functions) Hit Total Coverage
Test: Combined Lines: 10 10 100.0 %
Date: 2024-07-13 09:44:24 Functions: 4 4 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           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                 :        688 : scsi_subsystem_init(void)
      14                 :            : {
      15                 :            :         int rc;
      16                 :            : 
      17                 :        688 :         rc = spdk_scsi_init();
      18                 :            : 
      19                 :        688 :         spdk_subsystem_init_next(rc);
      20                 :        688 : }
      21                 :            : 
      22                 :            : static void
      23                 :        688 : scsi_subsystem_fini(void)
      24                 :            : {
      25                 :        688 :         spdk_scsi_fini();
      26                 :        688 :         spdk_subsystem_fini_next();
      27                 :        688 : }
      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                 :        774 : SPDK_SUBSYSTEM_REGISTER(g_spdk_subsystem_scsi);
      36                 :        774 : SPDK_SUBSYSTEM_DEPEND(scsi, bdev)

Generated by: LCOV version 1.14