LCOV - code coverage report
Current view: top level - lib/nvme - nvme_stubs.c (source / functions) Hit Total Coverage
Test: ut_cov_unit.info Lines: 0 15 0.0 %
Date: 2024-12-16 07:09:15 Functions: 0 5 0.0 %

          Line data    Source code
       1             : /* SPDX-License-Identifier: BSD-3-Clause
       2             :  * Copyright (c) 2024 Intel Corporation.  All rights reserved.
       3             :  */
       4             : 
       5             : #include "spdk/config.h"
       6             : #include "spdk/log.h"
       7             : #include "spdk/nvme.h"
       8             : #include "spdk/stdinc.h"
       9             : #include "nvme_internal.h"
      10             : 
      11             : #ifndef SPDK_CONFIG_NVME_CUSE
      12             : int
      13           0 : spdk_nvme_cuse_get_ctrlr_name(struct spdk_nvme_ctrlr *ctrlr, char *name, size_t *size)
      14             : {
      15           0 :         SPDK_ERRLOG("spdk_nvme_cuse_get_ctrlr_name() is unsupported\n");
      16           0 :         return -ENOTSUP;
      17             : }
      18             : 
      19             : int
      20           0 : spdk_nvme_cuse_get_ns_name(struct spdk_nvme_ctrlr *ctrlr, uint32_t nsid, char *name, size_t *size)
      21             : {
      22           0 :         SPDK_ERRLOG("spdk_nvme_cuse_get_ns_name() is unsupported\n");
      23           0 :         return -ENOTSUP;
      24             : }
      25             : 
      26             : int
      27           0 : spdk_nvme_cuse_register(struct spdk_nvme_ctrlr *ctrlr)
      28             : {
      29           0 :         SPDK_ERRLOG("spdk_nvme_cuse_register() is unsupported\n");
      30           0 :         return -ENOTSUP;
      31             : }
      32             : 
      33             : int
      34           0 : spdk_nvme_cuse_unregister(struct spdk_nvme_ctrlr *ctrlr)
      35             : {
      36           0 :         SPDK_ERRLOG("spdk_nvme_cuse_unregister() is unsupported\n");
      37           0 :         return -ENOTSUP;
      38             : }
      39             : 
      40             : void
      41           0 : spdk_nvme_cuse_update_namespaces(struct spdk_nvme_ctrlr *ctrlr)
      42             : {
      43           0 :         SPDK_ERRLOG("spdk_nvme_cuse_update_namespaces() is unsupported\n");
      44           0 : }
      45             : #endif /* !SPDK_CONFIG_NVME_CUSE */
      46             : 
      47             : #ifndef SPDK_CONFIG_RDMA
      48             : void
      49             : spdk_nvme_rdma_init_hooks(struct spdk_nvme_rdma_hooks *hooks)
      50             : {
      51             :         SPDK_ERRLOG("spdk_nvme_rdma_init_hooks() is unsupported: RDMA transport is not available\n");
      52             :         abort();
      53             : }
      54             : #endif /* !SPDK_CONFIG_RDMA */
      55             : 
      56             : #ifndef SPDK_CONFIG_HAVE_EVP_MAC
      57             : int
      58             : nvme_fabric_qpair_authenticate_async(struct spdk_nvme_qpair *qpair)
      59             : {
      60             :         SPDK_ERRLOG("NVMe in-band authentication is unsupported\n");
      61             :         return -ENOTSUP;
      62             : }
      63             : 
      64             : int
      65             : nvme_fabric_qpair_authenticate_poll(struct spdk_nvme_qpair *qpair)
      66             : {
      67             :         return -ENOTSUP;
      68             : }
      69             : 
      70             : int
      71             : spdk_nvme_qpair_authenticate(struct spdk_nvme_qpair *qpair,
      72             :                              spdk_nvme_authenticate_cb cb_fn, void *cb_ctx)
      73             : {
      74             :         SPDK_ERRLOG("NVMe in-band authentication is unsupported\n");
      75             :         return -ENOTSUP;
      76             : }
      77             : #endif /* !SPDK_CONFIG_HAVE_EVP_MAC */

Generated by: LCOV version 1.15