LCOV - code coverage report
Current view: top level - spdk/module/event/subsystems/vhost_blk - vhost_blk.c (source / functions) Hit Total Coverage
Test: Combined Lines: 14 14 100.0 %
Date: 2024-07-15 19:04:35 Functions: 6 6 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) 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                 :        516 : vhost_blk_subsystem_init_done(int rc)
      14                 :            : {
      15                 :        516 :         spdk_subsystem_init_next(rc);
      16                 :        516 : }
      17                 :            : 
      18                 :            : static void
      19                 :        516 : vhost_blk_subsystem_init(void)
      20                 :            : {
      21                 :        516 :         spdk_vhost_blk_init(vhost_blk_subsystem_init_done);
      22                 :        516 : }
      23                 :            : 
      24                 :            : static void
      25                 :        516 : vhost_blk_subsystem_fini_done(void)
      26                 :            : {
      27                 :        516 :         spdk_subsystem_fini_next();
      28                 :        516 : }
      29                 :            : 
      30                 :            : static void
      31                 :        516 : vhost_blk_subsystem_fini(void)
      32                 :            : {
      33                 :        516 :         spdk_vhost_blk_fini(vhost_blk_subsystem_fini_done);
      34                 :        516 : }
      35                 :            : 
      36                 :            : static struct spdk_subsystem g_spdk_subsystem_vhost_blk = {
      37                 :            :         .name = "vhost_blk",
      38                 :            :         .init = vhost_blk_subsystem_init,
      39                 :            :         .fini = vhost_blk_subsystem_fini,
      40                 :            :         .write_config_json = spdk_vhost_blk_config_json,
      41                 :            : };
      42                 :            : 
      43                 :        558 : SPDK_SUBSYSTEM_REGISTER(g_spdk_subsystem_vhost_blk);
      44                 :        558 : SPDK_SUBSYSTEM_DEPEND(vhost_blk, bdev)

Generated by: LCOV version 1.14