The word engine was both used (interchangeably with module) to refer to the things that plug into the framework and to the framework itself. This patch eliminates all use of the word engine that meant the framework. It leaves uses of the word that meant "module". Change-Id: I6b9b50e2f045ac39f2a74d0152ee8d6269be4bd1 Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13918 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
43 lines
779 B
C
43 lines
779 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright (c) Intel Corporation.
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#include "spdk/stdinc.h"
|
|
|
|
#include "spdk/accel.h"
|
|
|
|
#include "spdk_internal/init.h"
|
|
#include "spdk/env.h"
|
|
|
|
static void
|
|
accel_subsystem_initialize(void)
|
|
{
|
|
int rc;
|
|
|
|
rc = spdk_accel_initialize();
|
|
|
|
spdk_subsystem_init_next(rc);
|
|
}
|
|
|
|
static void
|
|
accel_subsystem_finish_done(void *cb_arg)
|
|
{
|
|
spdk_subsystem_fini_next();
|
|
}
|
|
|
|
static void
|
|
accel_subsystem_finish(void)
|
|
{
|
|
spdk_accel_finish(accel_subsystem_finish_done, NULL);
|
|
}
|
|
|
|
static struct spdk_subsystem g_spdk_subsystem_accel = {
|
|
.name = "accel",
|
|
.init = accel_subsystem_initialize,
|
|
.fini = accel_subsystem_finish,
|
|
.write_config_json = spdk_accel_write_config_json,
|
|
};
|
|
|
|
SPDK_SUBSYSTEM_REGISTER(g_spdk_subsystem_accel);
|