LCOV - code coverage report
Current view: top level - module/event/subsystems/accel - accel.c (source / functions) Hit Total Coverage
Test: ut_cov_unit.info Lines: 0 12 0.0 %
Date: 2024-12-16 14:04:41 Functions: 0 5 0.0 %

          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           0 : accel_subsystem_initialize(void)
      15             : {
      16             :         int rc;
      17             : 
      18           0 :         rc = spdk_accel_initialize();
      19             : 
      20           0 :         spdk_subsystem_init_next(rc);
      21           0 : }
      22             : 
      23             : static void
      24           0 : accel_subsystem_finish_done(void *cb_arg)
      25             : {
      26           0 :         spdk_subsystem_fini_next();
      27           0 : }
      28             : 
      29             : static void
      30           0 : accel_subsystem_finish(void)
      31             : {
      32           0 :         spdk_accel_finish(accel_subsystem_finish_done, NULL);
      33           0 : }
      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           0 : SPDK_SUBSYSTEM_REGISTER(g_spdk_subsystem_accel);
      43           0 : SPDK_SUBSYSTEM_DEPEND(accel, iobuf)

Generated by: LCOV version 1.15