LCOV - code coverage report
Current view: top level - spdk/module/event/subsystems/accel - accel.c (source / functions) Hit Total Coverage
Test: Combined Lines: 12 12 100.0 %
Date: 2024-08-11 07:26:50 Functions: 5 5 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) 2020 Intel Corporation.
       3                 :            :  *   All rights reserved.
       4                 :            :  */
       5                 :            : 
       6                 :            : #include "spdk/stdinc.h"
       7                 :            : 
       8                 :            : #include "spdk/accel.h"
       9                 :            : 
      10                 :            : #include "spdk_internal/init.h"
      11                 :            : #include "spdk/env.h"
      12                 :            : 
      13                 :            : static void
      14                 :       1982 : accel_subsystem_initialize(void)
      15                 :            : {
      16                 :            :         int rc;
      17                 :            : 
      18                 :       1982 :         rc = spdk_accel_initialize();
      19                 :            : 
      20                 :       1982 :         spdk_subsystem_init_next(rc);
      21                 :       1982 : }
      22                 :            : 
      23                 :            : static void
      24                 :       1982 : accel_subsystem_finish_done(void *cb_arg)
      25                 :            : {
      26                 :       1982 :         spdk_subsystem_fini_next();
      27                 :       1982 : }
      28                 :            : 
      29                 :            : static void
      30                 :       1982 : accel_subsystem_finish(void)
      31                 :            : {
      32                 :       1982 :         spdk_accel_finish(accel_subsystem_finish_done, NULL);
      33                 :       1982 : }
      34                 :            : 
      35                 :            : static struct spdk_subsystem g_spdk_subsystem_accel = {
      36                 :            :         .name = "accel",
      37                 :            :         .init = accel_subsystem_initialize,
      38                 :            :         .fini = accel_subsystem_finish,
      39                 :            :         .write_config_json = spdk_accel_write_config_json,
      40                 :            : };
      41                 :            : 
      42                 :       2108 : SPDK_SUBSYSTEM_REGISTER(g_spdk_subsystem_accel);
      43                 :       2108 : SPDK_SUBSYSTEM_DEPEND(accel, iobuf)

Generated by: LCOV version 1.14